From 55bf87c6af0cd32fb45de1e5c945f805f1c23d18 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 19 Nov 2014 14:39:44 +0000 Subject: Do not include \0 into length of text. --- src/libmime/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libmime') diff --git a/src/libmime/message.c b/src/libmime/message.c index 164a1bd9b..f6c84e123 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -945,7 +945,7 @@ rspamd_text_to_utf8 (struct rspamd_task *task, } } - *d++ = '\0'; + *d = '\0'; *olen = d - res; return res; -- cgit v1.2.3