diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-04-04 17:33:01 +0200 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-04-05 07:30:38 -0400 |
commit | 081cd9f9af41a3d3e30d5ab29dd8c849f2a6ac58 (patch) | |
tree | c1cfc9265a0a5f856aa89f627b2160b57d96b366 /Userland | |
parent | 3ec513ecf21b2ec8b64c8548e9bb5b4173eb7a5f (diff) | |
download | serenity-081cd9f9af41a3d3e30d5ab29dd8c849f2a6ac58.zip |
lzcat: Use BufferedFile for reading inputs
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Utilities/lzcat.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/lzcat.cpp b/Userland/Utilities/lzcat.cpp index 5884a9f0d2..cc9d6ba936 100644 --- a/Userland/Utilities/lzcat.cpp +++ b/Userland/Utilities/lzcat.cpp @@ -22,7 +22,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) args_parser.parse(arguments); auto file = TRY(Core::File::open_file_or_standard_stream(filename, Core::File::OpenMode::Read)); - auto stream = TRY(Compress::LzmaDecompressor::create_from_container(move(file))); + auto buffered_file = TRY(Core::BufferedFile::create(move(file))); + auto stream = TRY(Compress::LzmaDecompressor::create_from_container(move(buffered_file))); // Arbitrarily chosen buffer size. Array<u8, 4096> buffer; |