diff --git a/Userland/Utilities/lzcat.cpp b/Userland/Utilities/lzcat.cpp index 5884a9f0d24..cc9d6ba9362 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;