diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-06 15:41:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-06 15:41:16 +0100 |
commit | aac916db77b6ae58b7c0186d764e97a25482017c (patch) | |
tree | 52d58a063d790c699913116ee790b2a3019a6615 /src/lua/lua_task.c | |
parent | c7f92da47dcb17393132b713f75a4dbd41629819 (diff) | |
download | rspamd-aac916db77b6ae58b7c0186d764e97a25482017c.tar.gz rspamd-aac916db77b6ae58b7c0186d764e97a25482017c.zip |
Start miration to the new strings.
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index d52eeb166..4ef772a5c 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -638,8 +638,8 @@ lua_task_create_from_buffer (lua_State *L) ptask = lua_newuserdata (L, sizeof (gpointer)); rspamd_lua_setclass (L, "rspamd{task}", -1); *ptask = task; - task->msg.start = rspamd_mempool_alloc (task->task_pool, len + 1); - memcpy ((gpointer)task->msg.start, data, len); + task->msg.begin = rspamd_mempool_alloc (task->task_pool, len); + memcpy ((gpointer)task->msg.begin, data, len); task->msg.len = len; } return 1; @@ -883,7 +883,7 @@ lua_task_get_content (lua_State * L) t = lua_newuserdata (L, sizeof (*t)); rspamd_lua_setclass (L, "rspamd{text}", -1); t->len = task->msg.len; - t->start = task->msg.start; + t->start = task->msg.begin; t->own = FALSE; return 1; |