diff options
Diffstat (limited to 'Userland/Utilities/copy.cpp')
-rw-r--r-- | Userland/Utilities/copy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/copy.cpp b/Userland/Utilities/copy.cpp index 1a6f80de9f..b3103c7146 100644 --- a/Userland/Utilities/copy.cpp +++ b/Userland/Utilities/copy.cpp @@ -43,7 +43,7 @@ static ErrorOr<Options> parse_options(Main::Arguments arguments) } else if (text.is_empty()) { // Copy our stdin. auto c_stdin = TRY(Core::Stream::File::standard_input()); - auto buffer = TRY(c_stdin->read_all()); + auto buffer = TRY(c_stdin->read_until_eof()); dbgln("Read size {}", buffer.size()); dbgln("Read data: `{}`", StringView(buffer.bytes())); options.data = buffer.bytes(); |