From 7326da15073eaf259426cc84d966e2ec6dcbc427 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 14 Dec 2023 17:02:11 +0000 Subject: [PATCH] [Minor] Another issue --- src/libstat/backends/redis_backend.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5