aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-15 19:52:34 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-15 19:53:07 +0000
commit903e7594a3bab3a8c4a76ac7911620d8c330e1e0 (patch)
treea51c8d4e100f170e6399d70ac81c37798df0e825 /src
parent972245ec54016b41909ba3020da16af48700de69 (diff)
downloadrspamd-903e7594a3bab3a8c4a76ac7911620d8c330e1e0.tar.gz
rspamd-903e7594a3bab3a8c4a76ac7911620d8c330e1e0.zip
[Fix] Fix writing of user to roll history
Issue: #1429 Reported by: @moisseev
Diffstat (limited to 'src')
-rw-r--r--src/libserver/roll_history.c2
1 files changed, 1 insertions, 1 deletions
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';