dovecot-1.2: lf-istream: Don't assert-crash if last character in...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Aug 14 20:14:10 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/4c42e72a3954
changeset: 9325:4c42e72a3954
user: Timo Sirainen <tss at iki.fi>
date: Fri Aug 14 13:14:02 2009 -0400
description:
lf-istream: Don't assert-crash if last character in buffer is CR, not followed by LF.
diffstat:
1 file changed, 1 insertion(+)
src/lib/istream-crlf.c | 1 +
diffs (11 lines):
diff -r 5d53b1d66d1b -r 4c42e72a3954 src/lib/istream-crlf.c
--- a/src/lib/istream-crlf.c Fri Aug 14 02:54:41 2009 -0400
+++ b/src/lib/istream-crlf.c Fri Aug 14 13:14:02 2009 -0400
@@ -115,6 +115,7 @@ static ssize_t i_stream_crlf_read_lf(str
/* CR without LF */
stream->w_buffer[dest++] = '\r';
if (dest == stream->buffer_size) {
+ stream->pos++;
cstream->pending_cr = FALSE;
return 1;
}
More information about the dovecot-cvs
mailing list