From 60f2d413e04f67ab39fbf80e8f356a097f29919e Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 14 Jun 2018 20:06:56 +0200 Subject: [PATCH] Fix missing hexification for chars 0x00 - 0x1f --- src/convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/convert.c b/src/convert.c index 628a9b402..2517b7b03 100644 --- a/src/convert.c +++ b/src/convert.c @@ -33,8 +33,8 @@ static bool printable_utf8 (const u8 *buf, const size_t len) const int cp_types[256] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,