summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2019-03-01 00:10:33 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2019-03-01 00:10:48 +0200
commit893236e2fa2eed831123bcd0eca44766a36f8bfe (patch)
tree1809512f2839ec8afe3cb92c6bcadf9a03153389
parent596622998378d41fce76d4fa375fdce2a19bbc5a (diff)
memview: use 2d array for hex lookupHEADmaster
-rw-r--r--src/memview.c2
1 files changed, 1 insertions, 1 deletions
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",