From 69a325e7d3f29ad7a84e6fa2e73cf1483135a9df Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 2 Aug 2016 16:32:33 +0100 Subject: [PATCH] [Fix] Fix folding for semicolon separated tokens --- src/libutil/str_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ++; -- 2.39.5