From: Vsevolod Stakhov Date: Mon, 18 Nov 2019 20:17:13 +0000 (+0000) Subject: [Minor] Fix offset X-Git-Tag: 2.2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=348e8406b833bb0c4f872d7a7ff39179abaccd4c;p=rspamd.git [Minor] Fix offset --- diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c index dcaa1612a..c3f69edbd 100644 --- a/src/libmime/mime_encoding.c +++ b/src/libmime/mime_encoding.c @@ -488,7 +488,7 @@ rspamd_mime_charset_utf_enforce (gchar *in, gsize len) if (uc > 0) { /* Fill string between err_offset and tmp with `?` character */ - memset (p + err_offset - 1, '?', tmp - err_offset); + memset (p + err_offset, '?', tmp - err_offset); break; } }