diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-07-09 10:52:29 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-07-09 10:52:29 -0400 |
commit | 29f15863e7422a314f64ec0535f801b5838eb68f (patch) | |
tree | 209d45a88687ee8451fad58e34c7d6fed87ed5f1 | |
parent | a77c3d2dd4ae851745f21eb92c6fd04435627928 (diff) | |
download | asdfapi-29f15863e7422a314f64ec0535f801b5838eb68f.tar.gz |
Fix hexdump routine
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -369,7 +369,7 @@ static void asdfapi_hexdump(const char *data, const size_t size) { if (size < width) { width = size; } - for (size_t b = 0, col = 0; b < 16; b++) { + for (size_t b = 0, col = 0; b < size; b++) { char ch = data[b]; if (!col) { // Record the starting address |