From 1ca2e0c019b4f24227e29ee920c3d6190c9f2d7a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 18 Jun 2025 16:03:27 -0400 Subject: Use DEBUG_HEXDUMP_FMT_BYTES --- src/lib/core/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c index 89d0baa..52263f8 100644 --- a/src/lib/core/utils.c +++ b/src/lib/core/utils.c @@ -941,7 +941,7 @@ void debug_hexdump(char *data, int len) { for (int i = 0; i < padding; i++) { strcat(bytes, " "); } - snprintf(output, 6 + sizeof(addr) + sizeof(bytes) + sizeof(ascii), "%s | %s | %s", addr, bytes, ascii); + snprintf(output, DEBUG_HEXDUMP_FMT_BYTES + sizeof(addr) + sizeof(bytes) + sizeof(ascii), "%s | %s | %s", addr, bytes, ascii); puts(output); } @@ -960,7 +960,7 @@ int grow(const size_t size_new, size_t *size_orig, char **data) { } if (tmp != *data) { *data = tmp; - } + Dynamic commands} *size_orig = new_size; } return 0; -- cgit