summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Utilities/xzcat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/xzcat.cpp b/Userland/Utilities/xzcat.cpp
index 81ffe61a45..19837711e8 100644
--- a/Userland/Utilities/xzcat.cpp
+++ b/Userland/Utilities/xzcat.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::XzDecompressor::create(move(file)));
+ auto buffered_file = TRY(Core::BufferedFile::create(move(file)));
+ auto stream = TRY(Compress::XzDecompressor::create(move(buffered_file)));
// Arbitrarily chosen buffer size.
Array<u8, 4096> buffer;