From 1b1e399e2ec720cd93785ece148ec081255bd908 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Fri, 2 Dec 2022 00:55:59 -0800 Subject: [PATCH] FileOutputStream: Properly pass block_size to CopyingOutputStreamAdaptor PiperOrigin-RevId: 492403550 --- src/google/protobuf/io/zero_copy_stream_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/google/protobuf/io/zero_copy_stream_impl.cc b/src/google/protobuf/io/zero_copy_stream_impl.cc index 041930e0b599..32127832960f 100644 --- a/src/google/protobuf/io/zero_copy_stream_impl.cc +++ b/src/google/protobuf/io/zero_copy_stream_impl.cc @@ -169,8 +169,8 @@ int FileInputStream::CopyingFileInputStream::Skip(int count) { // =================================================================== -FileOutputStream::FileOutputStream(int file_descriptor, int /*block_size*/) - : CopyingOutputStreamAdaptor(©ing_output_), +FileOutputStream::FileOutputStream(int file_descriptor, int block_size) + : CopyingOutputStreamAdaptor(©ing_output_, block_size), copying_output_(file_descriptor) {} bool FileOutputStream::Close() {