summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dump.c b/src/dump.c
index 698fc55..8634b72 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -103,7 +103,7 @@ print_array(const uint8_t *buf, const size_t size, const size_t nmemb, void (*fu
fun(buf + n * size, size);
printf("%s", (nmemb > 1 && n + 1 < nmemb ? ", " : ""));
- if (!((n + 1) % 8))
+ if (n + 1 < nmemb && !((n + 1) % 8))
printf("\n%*s", indent, "");
}