From 6ac9d9b325b795097afdec712f83d9ea2ce6a5e7 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Vuotto Date: Wed, 5 Jun 2024 23:36:48 +0000 Subject: [PATCH] util/lc_hexdump_fp: advance pointer --- util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util.c b/util.c index 5e38290..bce801f 100644 --- a/util.c +++ b/util.c @@ -105,6 +105,7 @@ lc_hexdump_fp(FILE *fp, const void *blob, size_t len) l = hexdump_line(buf, p, len, off, pad); if (fputs(buf, fp) == EOF) return 0; + p += l; off += l; len -= l; }