aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-07-09 10:52:29 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-07-09 10:52:29 -0400
commit29f15863e7422a314f64ec0535f801b5838eb68f (patch)
tree209d45a88687ee8451fad58e34c7d6fed87ed5f1
parenta77c3d2dd4ae851745f21eb92c6fd04435627928 (diff)
downloadasdfapi-29f15863e7422a314f64ec0535f801b5838eb68f.tar.gz
Fix hexdump routine
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 8efb358..d3bcf38 100644
--- a/main.c
+++ b/main.c
@@ -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