diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-02 16:32:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-02 16:32:33 +0100 |
commit | 69a325e7d3f29ad7a84e6fa2e73cf1483135a9df (patch) | |
tree | 6a56b53fbf0d5d2caf9a4f6e3fd5b19f00c46a4f /src/libutil | |
parent | 62171ed81d3b3d7a6d97d8f1d5564f850d35bb2a (diff) | |
download | rspamd-69a325e7d3f29ad7a84e6fa2e73cf1483135a9df.tar.gz rspamd-69a325e7d3f29ad7a84e6fa2e73cf1483135a9df.zip |
[Fix] Fix folding for semicolon separated tokens
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/str_util.c | 4 |
1 files 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 ++; |