dovecot-2.0: ostream-buffer: Don't grow buffer above max_buffer_...

dovecot at dovecot.org dovecot at dovecot.org
Wed Aug 12 00:00:01 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/7c0b29275651
changeset: 9766:7c0b29275651
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Aug 11 16:59:55 2009 -0400
description:
ostream-buffer: Don't grow buffer above max_buffer_size.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/ostream-buffer.c |    2 +-

diffs (12 lines):

diff -r 935b9cfc1905 -r 7c0b29275651 src/lib/ostream-buffer.c
--- a/src/lib/ostream-buffer.c	Tue Aug 11 14:08:09 2009 -0400
+++ b/src/lib/ostream-buffer.c	Tue Aug 11 16:59:55 2009 -0400
@@ -70,7 +70,7 @@ o_stream_buffer_sendv(struct ostream_pri
 		left = bstream->max_buffer_size - stream->ostream.offset;
 		n = I_MIN(left, iov[i].iov_len);
 		buffer_write(bstream->buf, stream->ostream.offset,
-			     iov[i].iov_base, iov[i].iov_len);
+			     iov[i].iov_base, n);
 		ret += n;
 		if (n != iov[i].iov_len)
 			break;


More information about the dovecot-cvs mailing list