summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Utilities/tail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/tail.cpp b/Userland/Utilities/tail.cpp
index c9ad2abf0b..6ed396c535 100644
--- a/Userland/Utilities/tail.cpp
+++ b/Userland/Utilities/tail.cpp
@@ -33,7 +33,7 @@ static ErrorOr<off_t> find_seek_pos(Core::File& file, int wanted_lines)
TRY(file.seek(pos - 1, SeekMode::SetPosition));
auto ch = TRY(file.read_value<u8>());
- if (ch == '\n' && (end - pos) > 1) {
+ if (ch == '\n' && (end - pos) > 0) {
lines++;
if (lines == wanted_lines)
break;