From e91df87a8f866beb51ff4752c4c84df7d0524a2e Mon Sep 17 00:00:00 2001 From: Michael Black Date: Thu, 12 Dec 2019 10:14:42 -0600 Subject: [PATCH] Fix hex_dump..was printing negative values --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index aafdc009c..10dec74fc 100644 --- a/src/debug.c +++ b/src/debug.c @@ -84,7 +84,7 @@ void dump_hex(const unsigned char ptr[], size_t size) for (i = 0; i < size; ++i) { - char c; + unsigned char c; if (i % DUMP_HEX_WIDTH == 0) { /* new line */