From: Vsevolod Stakhov Date: Thu, 17 Dec 2015 18:37:26 +0000 (+0000) Subject: Use base32 for keys instead of hex X-Git-Tag: 1.1.0~256 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b2a4a74370b4c0596306fc001fcb43235f123b8;p=rspamd.git Use base32 for keys instead of hex --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 70cb717a9..cd80b8cc6 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -845,7 +845,7 @@ rspamd_fuzzy_stat_to_ucl (struct rspamd_fuzzy_storage_ctx *ctx, gboolean ip_stat key_stat = key->stat; if (key_stat) { - rspamd_snprintf (keyname, sizeof (keyname), "%8xs", k); + rspamd_snprintf (keyname, sizeof (keyname), "%8bs", k); elt = rspamd_fuzzy_storage_stat_key (key_stat);