aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/mem_pool.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-06 15:41:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-06 15:41:16 +0100
commitaac916db77b6ae58b7c0186d764e97a25482017c (patch)
tree52d58a063d790c699913116ee790b2a3019a6615 /src/libutil/mem_pool.c
parentc7f92da47dcb17393132b713f75a4dbd41629819 (diff)
downloadrspamd-aac916db77b6ae58b7c0186d764e97a25482017c.tar.gz
rspamd-aac916db77b6ae58b7c0186d764e97a25482017c.zip
Start miration to the new strings.
Diffstat (limited to 'src/libutil/mem_pool.c')
-rw-r--r--src/libutil/mem_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c
index ea5fa0bd8..6d8c37223 100644
--- a/src/libutil/mem_pool.c
+++ b/src/libutil/mem_pool.c
@@ -424,7 +424,7 @@ rspamd_mempool_fstrdup (rspamd_mempool_t * pool, const struct f_str_s *src)
}
newstr = rspamd_mempool_alloc (pool, src->len + 1);
- memcpy (newstr, src->begin, src->len);
+ memcpy (newstr, src->str, src->len);
newstr[src->len] = '\0';
return newstr;
}