aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2007-06-07 16:36:04 +0000
committerVincent Richard <[email protected]>2007-06-07 16:36:04 +0000
commit923a53990badb6afa4d8958473d473d4e3d27993 (patch)
tree26b6ec3a3ff5f8d1f686a715b25de77ad81820b2
parentFixed bug #1721186: thread-safe reference counting. (diff)
downloadvmime-923a53990badb6afa4d8958473d473d4e3d27993.tar.gz
vmime-923a53990badb6afa4d8958473d473d4e3d27993.zip
Fixed wrong block size (thanks to Emmanuel Cabestan).
-rw-r--r--src/utility/stream.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{