From: Vsevolod Stakhov Date: Thu, 14 Dec 2023 16:53:19 +0000 (+0000) Subject: [Minor] Uh-oh... X-Git-Tag: 3.8.0~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b430183a56e0f4222a6d9af201a5ec35a08fbe70;p=rspamd.git [Minor] Uh-oh... --- 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);