aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libstat/backends/redis_backend.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}