From 893236e2fa2eed831123bcd0eca44766a36f8bfe Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 1 Mar 2019 00:10:33 +0200 Subject: memview: use 2d array for hex lookup --- src/memview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memview.c b/src/memview.c index eab14c6..3b61360 100644 --- a/src/memview.c +++ b/src/memview.c @@ -190,7 +190,7 @@ const char* hex_for_byte(unsigned char byte) { // optimization to avoid vprintf for the hex view - static const char *hex[256] = { + static const char hex[256][3] = { "00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", -- cgit v1.2.3