From: Vsevolod Stakhov Date: Thu, 14 Dec 2023 17:02:11 +0000 (+0000) Subject: [Minor] Another issue X-Git-Tag: 3.8.0~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7326da15073eaf259426cc84d966e2ec6dcbc427;p=rspamd.git [Minor] Another issue --- diff --git a/src/libstat/backends/redis_backend.cxx b/src/libstat/backends/redis_backend.cxx index c40d50b1c..b91d93ac8 100644 --- a/src/libstat/backends/redis_backend.cxx +++ b/src/libstat/backends/redis_backend.cxx @@ -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; }