diff options
Diffstat (limited to 'src/head.c')
-rw-r--r-- | src/head.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/head.c b/src/head.c index b833af675..e27ce4618 100644 --- a/src/head.c +++ b/src/head.c @@ -443,7 +443,7 @@ elide_tail_bytes_file (const char *filename, int fd, uintmax_t n_elide) /* Seek back to 'current' position, then copy the required number of bytes from fd. */ - if (lseek (fd, 0, current_pos) == -1) + if (lseek (fd, current_pos, SEEK_SET) < 0) { error (0, errno, _("%s: cannot lseek back to original position"), quote (filename)); |