commit 348e840: [Minor] Fix offset
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Nov 18 20:21:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-11-18 20:17:13 +0000
URL: https://github.com/rspamd/rspamd/commit/348e8406b833bb0c4f872d7a7ff39179abaccd4c (HEAD -> master)
[Minor] Fix offset
---
src/libmime/mime_encoding.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
}
More information about the Commits
mailing list