summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tail/forward.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c
index ffca06a..f1f1118 100644
--- a/usr.bin/tail/forward.c
+++ b/usr.bin/tail/forward.c
@@ -302,7 +302,7 @@ rlines(fp, off, sbp)
}
/* Set the file pointer to reflect the length displayed. */
- if (fseeko(fp, sbp->st_size, SEEK_SET) == -1) {
+ if (fseek(fp, 0L, SEEK_END) == -1) {
ierr();
return;
}
OpenPOWER on IntegriCloud