summaryrefslogtreecommitdiffstats
path: root/src/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings.c')
-rw-r--r--src/strings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings.c b/src/strings.c
index f9be40e3..fa7efa4a 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -351,7 +351,7 @@ process_chunk_mb (const char *fname, const unsigned char *buf, off64_t to,
}
if (unlikely (locfmt != NULL))
- printf (locfmt, (int64_t) to - len);
+ printf (locfmt, (int64_t) to - len - (buf - start));
if (unlikely (*unprinted != NULL))
{
@@ -417,7 +417,7 @@ process_chunk (const char *fname, const unsigned char *buf, off64_t to,
}
if (unlikely (locfmt != NULL))
- printf (locfmt, (int64_t) to - len);
+ printf (locfmt, (int64_t) to - len - (buf - start));
if (unlikely (*unprinted != NULL))
{