From: Vsevolod Stakhov Date: Wed, 15 Feb 2017 19:52:34 +0000 (+0000) Subject: [Fix] Fix writing of user to roll history X-Git-Tag: 1.5.0~98 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=903e7594a3bab3a8c4a76ac7911620d8c330e1e0;p=rspamd.git [Fix] Fix writing of user to roll history Issue: #1429 Reported by: @moisseev --- diff --git a/src/libserver/roll_history.c b/src/libserver/roll_history.c index c6d59dc9d..86f0df02b 100644 --- a/src/libserver/roll_history.c +++ b/src/libserver/roll_history.c @@ -110,7 +110,7 @@ rspamd_roll_history_update (struct roll_history *history, rspamd_strlcpy (row->message_id, task->message_id, sizeof (row->message_id)); if (task->user) { - rspamd_strlcpy (row->user, task->user, sizeof (row->message_id)); + rspamd_strlcpy (row->user, task->user, sizeof (row->user)); } else { row->user[0] = '\0';