dovecot-1.2: lib-mail: rfc822_parse_quoted_string() didn't remov...

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 4 14:13:03 EET 2012


details:   http://hg.dovecot.org/dovecot-1.2/rev/c80abc48d486
changeset: 9654:c80abc48d486
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 04 14:12:19 2012 +0200
description:
lib-mail: rfc822_parse_quoted_string() didn't remove '\' from the strings.

diffstat:

 src/lib-mail/rfc822-parser.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9f3c8c59f8c4 -r c80abc48d486 src/lib-mail/rfc822-parser.c
--- a/src/lib-mail/rfc822-parser.c	Sun Feb 12 03:32:20 2012 +0200
+++ b/src/lib-mail/rfc822-parser.c	Sun Mar 04 14:12:19 2012 +0200
@@ -231,7 +231,7 @@
 			if (ctx->data == ctx->end)
 				return -1;
 
-			str_append_n(str, start, ctx->data - start);
+			str_append_n(str, start, ctx->data - start - 1);
 			start = ctx->data;
 			break;
 		}


More information about the dovecot-cvs mailing list