aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-12-14 16:53:19 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-12-14 16:53:19 +0000
commitb430183a56e0f4222a6d9af201a5ec35a08fbe70 (patch)
tree178ea9306c66e65d715317de7c07f6d11f0dd8fe /src/libstat
parented53205a4b1e6b3eb6c13729c488e2c2459e0bbc (diff)
downloadrspamd-b430183a56e0f4222a6d9af201a5ec35a08fbe70.tar.gz
rspamd-b430183a56e0f4222a6d9af201a5ec35a08fbe70.zip
[Minor] Uh-oh...
Diffstat (limited to 'src/libstat')
-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 026bb4503..c40d50b1c 100644
--- a/src/libstat/backends/redis_backend.cxx
+++ b/src/libstat/backends/redis_backend.cxx
@@ -670,7 +670,7 @@ rspamd_redis_serialize_tokens(struct rspamd_task *task, const gchar *prefix, GPt
{
auto numbuf_len = sizeof(max_int64_str) + prefix_len + 1;
auto *numbuf = (char *) g_alloca(numbuf_len);
- auto r = rspamd_snprintf(numbuf, numbuf_len, "%s_%uL", tok->data);
+ auto r = rspamd_snprintf(numbuf, numbuf_len, "%s_%uL", prefix, tok->data);
*p++ = (gchar) ((r & 0xff) | 0xa0);
memcpy(p, &numbuf, r);