diff options
Diffstat (limited to 'src/smtp.c')
-rw-r--r-- | src/smtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smtp.c b/src/smtp.c index f2d2e790a..859a83917 100644 --- a/src/smtp.c +++ b/src/smtp.c @@ -300,7 +300,7 @@ process_smtp_data (struct smtp_session *session) if (cur) { f = cur->data; s = memory_pool_alloc (session->pool, f->len + 1); - g_strlcpy (s, f->begin, f->len + 1); + rspamd_strlcpy (s, f->begin, f->len + 1); session->task->from = s; } /* Save recipients */ @@ -310,7 +310,7 @@ process_smtp_data (struct smtp_session *session) if (cur) { f = cur->data; s = memory_pool_alloc (session->pool, f->len + 1); - g_strlcpy (s, f->begin, f->len + 1); + rspamd_strlcpy (s, f->begin, f->len + 1); session->task->rcpt = g_list_prepend (session->task->rcpt, s); } t = g_list_next (t); |