From 923a53990badb6afa4d8958473d473d4e3d27993 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 7 Jun 2007 16:36:04 +0000 Subject: [PATCH] Fixed wrong block size (thanks to Emmanuel Cabestan). --- src/utility/stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/stream.cpp b/src/utility/stream.cpp index 276edc2c..ebc40e3a 100644 --- a/src/utility/stream.cpp +++ b/src/utility/stream.cpp @@ -82,7 +82,7 @@ const stream::size_type bufferedStreamCopy(inputStream& is, outputStream& os, while (!is.eof()) { - const stream::size_type read = is.read(buffer, sizeof(buffer)); + const stream::size_type read = is.read(buffer, blockSize); if (read != 0) {