From: Vsevolod Stakhov Date: Tue, 2 Aug 2016 15:32:33 +0000 (+0100) Subject: [Fix] Fix folding for semicolon separated tokens X-Git-Tag: 1.3.2~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=69a325e7d3f29ad7a84e6fa2e73cf1483135a9df;p=rspamd.git [Fix] Fix folding for semicolon separated tokens --- diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index c39dcb7ee..fbaa26c0f 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -1054,8 +1054,8 @@ rspamd_header_value_fold (const gchar *name, next_state = read_token; } else { - g_string_append_len (res, c, p - c); - c = p; + g_string_append_len (res, c, p - c + 1); + c = p + 1; first_token = FALSE; } p ++;