Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2981:ac10b761f179 HEAD
Stream copying skipped too much input if the output buffer wasn't empty when
it was called.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 16 Dec 2004 03:35:40 +0200 |
parents | 65e28b1be20e |
children | 3dedde6646c5 |
files | src/lib/ostream-file.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ostream-file.c Thu Dec 16 00:22:45 2004 +0200 +++ b/src/lib/ostream-file.c Thu Dec 16 03:35:40 2004 +0200 @@ -541,7 +541,7 @@ } } outstream->ostream.offset += ret; - i_stream_skip(instream, ret); + i_stream_skip(instream, ret - (pos == 1 ? 0 : iov[0].iov_len)); if ((size_t)ret != iov[pos].iov_len) break;