]> source.dussan.org Git - rspamd.git/commitdiff
Do not include \0 into length of text.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 19 Nov 2014 14:39:44 +0000 (14:39 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 19 Nov 2014 14:39:44 +0000 (14:39 +0000)
src/libmime/message.c

index 164a1bd9bd4e45ff8bafe6fca440883fbd2d4197..f6c84e123f406b3c63d7af19d83ce7bd8986dd61 100644 (file)
@@ -945,7 +945,7 @@ rspamd_text_to_utf8 (struct rspamd_task *task,
                }
        }
 
-       *d++ = '\0';
+       *d = '\0';
        *olen = d - res;
 
        return res;