From 455bdd978dfc79a6849e72f1e699e569f6c32eec Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 16 Oct 2018 15:34:02 -0600 Subject: [PATCH] Fix hd bug where it truncates homogeneous output when skipping --- hd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hd.c b/hd.c index 032bb55..57ade34 100644 --- a/hd.c +++ b/hd.c @@ -42,7 +42,7 @@ dump(FILE *f) if (0 == len) break; - if (p && (0 == memcmp(buf, buf + 16, 16))) { + if (p && (len == 16) && (0 == memcmp(buf, buf + 16, 16))) { if (!skipping) { printf("*\n"); skipping = 1;