]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix offset
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Nov 2019 20:17:13 +0000 (20:17 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Nov 2019 20:17:13 +0000 (20:17 +0000)
src/libmime/mime_encoding.c

index dcaa1612a74f784425732f49549421499507fa46..c3f69edbddd6f3d0a23d90127087f5215d1b1283 100644 (file)
@@ -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;
                        }
                }