lib-mail: rfc822_parse_quoted_string() didn't remove '\' from the strings. HEAD tip
authorTimo Sirainen <tss@iki.fi>
Sun Mar 04 14:12:19 2012 +0200 (2 months ago)
branchHEAD
changeset 83760cae9ccf09b9
parent 8375 22b99f10260a
lib-mail: rfc822_parse_quoted_string() didn't remove '\' from the strings.
src/lib-mail/rfc822-parser.c
     1.1 --- a/src/lib-mail/rfc822-parser.c	Sun Feb 12 03:32:20 2012 +0200
     1.2 +++ b/src/lib-mail/rfc822-parser.c	Sun Mar 04 14:12:19 2012 +0200
     1.3 @@ -231,7 +231,7 @@
     1.4  			if (ctx->data == ctx->end)
     1.5  				return -1;
     1.6  
     1.7 -			str_append_n(str, start, ctx->data - start);
     1.8 +			str_append_n(str, start, ctx->data - start - 1);
     1.9  			start = ctx->data;
    1.10  			break;
    1.11  		}