dovecot-1.2: message_header_encode(): Line lengths weren't calcu...

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 28 20:10:55 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/778a6418f54b
changeset: 9457:778a6418f54b
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 28 13:51:32 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 23abbf14279c -r 778a6418f54b src/lib-mail/message-header-encode.c
--- a/src/lib-mail/message-header-encode.c	Wed Oct 28 13:50:57 2009 -0400
+++ b/src/lib-mail/message-header-encode.c	Wed Oct 28 13:51:32 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