From 081cd9f9af41a3d3e30d5ab29dd8c849f2a6ac58 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 4 Apr 2023 17:33:01 +0200 Subject: [PATCH] lzcat: Use BufferedFile for reading inputs --- Userland/Utilities/lzcat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 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 buffer;