[dovecot-cvs] dovecot/src/lib ostream-file.c,1.41,1.42
cras at dovecot.org
cras at dovecot.org
Thu Dec 16 03:35:42 EET 2004
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv30767
Modified Files:
ostream-file.c
Log Message:
Stream copying skipped too much input if the output buffer wasn't empty when
it was called.
Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- ostream-file.c 20 Oct 2004 17:07:32 -0000 1.41
+++ ostream-file.c 16 Dec 2004 01:35:40 -0000 1.42
@@ -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;
More information about the dovecot-cvs
mailing list