]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another issue
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 14 Dec 2023 17:02:11 +0000 (17:02 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 14 Dec 2023 17:02:11 +0000 (17:02 +0000)
src/libstat/backends/redis_backend.cxx

index c40d50b1c31291895798d62874058a981e02e118..b91d93ac8aa8521f71730708293bfcfc562dabbf 100644 (file)
@@ -673,7 +673,7 @@ rspamd_redis_serialize_tokens(struct rspamd_task *task, const gchar *prefix, GPt
                auto r = rspamd_snprintf(numbuf, numbuf_len, "%s_%uL", prefix, tok->data);
                *p++ = (gchar) ((r & 0xff) | 0xa0);
 
-               memcpy(p, &numbuf, r);
+               memcpy(p, numbuf, r);
                p += r;
        }