aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-29 17:11:33 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-29 17:11:33 +0400
commitc2cb1e5252694c8d71a52d8f79ed3ff792c18332 (patch)
tree55b8469ffb12a9f55403ef21f5e76e610bd657a1 /src
parent922b62c8c3c59a287729726234b1b507da333a33 (diff)
downloadrspamd-c2cb1e5252694c8d71a52d8f79ed3ff792c18332.tar.gz
rspamd-c2cb1e5252694c8d71a52d8f79ed3ff792c18332.zip
* Do not add extra byte while converting text to utf
Diffstat (limited to 'src')
-rw-r--r--src/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index 772bf8053..49c48807b 100644
--- a/src/message.c
+++ b/src/message.c
@@ -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;