From 9bd616ca7aca3ff3fcd3a051e110f2d6e9abc76b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 18 Nov 2024 18:43:03 +0000 Subject: [Fix] Sigh, another fix --- src/libmime/mime_headers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c index f33311bbf..63419d6a3 100644 --- a/src/libmime/mime_headers.c +++ b/src/libmime/mime_headers.c @@ -863,7 +863,7 @@ rspamd_mime_header_encode(const char *in, gsize len, bool is_structured) if (need_encoding && (c == '(' || c == ')')) { /* If we need to encode, we must stop on comments characters */ - piece_len = i + 1; + piece_len = i; q = p + piece_len; /* No more space */ break; -- cgit v1.2.3