summaryrefslogtreecommitdiff
path: root/Userland/Utilities/shuf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/shuf.cpp')
-rw-r--r--Userland/Utilities/shuf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/shuf.cpp b/Userland/Utilities/shuf.cpp
index f291daab42..0583969e6b 100644
--- a/Userland/Utilities/shuf.cpp
+++ b/Userland/Utilities/shuf.cpp
@@ -30,7 +30,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
args_parser.parse(arguments);
auto file = TRY(Core::Stream::File::open_file_or_standard_stream(path, Core::Stream::OpenMode::Read));
- ByteBuffer buffer = TRY(file->read_all());
+ ByteBuffer buffer = TRY(file->read_until_eof());
u8 input_delimiter = is_zero_terminated ? '\0' : '\n';
Vector<Bytes> lines;