diff options
| author | Vincent Richard <[email protected]> | 2007-06-07 18:36:04 +0200 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2007-06-07 18:36:04 +0200 |
| commit | 923a53990badb6afa4d8958473d473d4e3d27993 (patch) | |
| tree | 26b6ec3a3ff5f8d1f686a715b25de77ad81820b2 /src | |
| parent | Fixed bug #1721186: thread-safe reference counting. (diff) | |
| download | vmime-923a53990badb6afa4d8958473d473d4e3d27993.tar.gz vmime-923a53990badb6afa4d8958473d473d4e3d27993.zip | |
Fixed wrong block size (thanks to Emmanuel Cabestan).
Diffstat (limited to 'src')
| -rw-r--r-- | src/utility/stream.cpp | 2 |
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) { |
