diff options
| -rw-r--r-- | util-linux/last.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/last.c b/util-linux/last.c index 7530d013d..aafd01bb9 100644 --- a/util-linux/last.c +++ b/util-linux/last.c @@ -157,7 +157,7 @@ int last_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) ut.ut_user, ut.ut_line, ut.ut_host, ctime(&t_tmp) + 4); next: pos -= sizeof(ut); - if (pos <= 0) + if (pos < 0) break; /* done. */ xlseek(file, pos, SEEK_SET); } |
