diff options
| author | Ulrich Drepper <[email protected]> | 2005-08-28 08:53:46 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2005-08-28 08:53:46 +0000 |
| commit | 83dd0d6ac034aab02c68f5957b3f4e7c9e587052 (patch) | |
| tree | 2552b81d681785f0a7d6da270ca0bca9c05cf886 /src/strings.c | |
| parent | 969bda4a47575b33af814c62ea876b0bbf8c5713 (diff) | |
Fix printing of location of string in strings.
Add test for strings.
spec file update.
Diffstat (limited to 'src/strings.c')
| -rw-r--r-- | src/strings.c | 4 |
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)) { |
