]> source.dussan.org Git - rspamd.git/commitdiff
* Do not add extra byte while converting text to utf
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 29 Jul 2010 13:11:33 +0000 (17:11 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 29 Jul 2010 13:11:33 +0000 (17:11 +0400)
src/message.c

index 772bf80535f9cf4102792f3562acf766b4b3defa..49c48807b80b9c732408464edac525ebc7719d08 100644 (file)
@@ -517,7 +517,7 @@ convert_text_to_utf (struct worker_task *task, GByteArray * part_content, GMimeC
 
        result_array = memory_pool_alloc (task->task_pool, sizeof (GByteArray));
        result_array->data = res_str;
-       result_array->len = write_bytes + 1;
+       result_array->len = write_bytes;
        memory_pool_add_destructor (task->task_pool, (pool_destruct_func) g_free, res_str);
        text_part->is_raw = FALSE;