]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix writing of user to roll history
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 15 Feb 2017 19:52:34 +0000 (19:52 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 15 Feb 2017 19:53:07 +0000 (19:53 +0000)
Issue: #1429
Reported by: @moisseev

src/libserver/roll_history.c

index c6d59dc9d528c5acae2ddf71c948d523f942448c..86f0df02b2c6a99bf81977e1ddb3d83ee73b3e45 100644 (file)
@@ -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';