From 1cb069aa8bc0eeb17a747174026de2f032c57d17 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 1 Dec 2021 05:03:41 +0100 Subject: Fix second nibbles in the hex dump Welp. --- hex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hex.c b/hex.c index 98211ef..86bc643 100644 --- a/hex.c +++ b/hex.c @@ -568,7 +568,7 @@ app_make_row (struct row_buffer *buf, int64_t addr, int attrs) // TODO: leave it up to the user to decide what should be colored uint8_t cell = g_ctx.data[cell_addr - g_ctx.data_offset]; row_buffer_append (buf, - (char[3]) { hexa[cell >> 4], hexa[cell & 7], 0 }, + (char[3]) { hexa[cell >> 4], hexa[cell & 0xf], 0 }, attrs | highlight); char s[2] = { (cell >= 32 && cell < 127) ? cell : '.', 0 }; -- cgit v1.2.3-70-g09d2