dovecot-2.0-sslstream: message_header_encode(): Line lengths wer...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:55:48 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/6c32cc350164
changeset: 10214:6c32cc350164
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 28 13:51:53 2009 -0400
description:
message_header_encode(): Line lengths weren't calculated properly with some characters.

diffstat:

1 file changed, 1 insertion(+)
src/lib-mail/message-header-encode.c |    1 +

diffs (11 lines):

diff -r f68c2cc1b32b -r 6c32cc350164 src/lib-mail/message-header-encode.c
--- a/src/lib-mail/message-header-encode.c	Wed Oct 28 13:50:55 2009 -0400
+++ b/src/lib-mail/message-header-encode.c	Wed Oct 28 13:51:53 2009 -0400
@@ -64,6 +64,7 @@ void message_header_encode_q(const unsig
 		case '=':
 		case '?':
 		case '_':
+			line_len_left -= 2;
 			str_printfa(output, "=%2X", input[i]);
 			break;
 		default:


More information about the dovecot-cvs mailing list