aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-11 18:00:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-11 18:00:43 +0000
commitf3585bb8b0ecc2dc710c9958484748afad38fec6 (patch)
treea17c28a29c8bf44d2c1e4f28e58ee9bd4053ad5b /src/libserver/cfg_rcl.c
parente4abacbe1ddd0f3e7e60a53aec5d93f96702b081 (diff)
downloadrspamd-f3585bb8b0ecc2dc710c9958484748afad38fec6.tar.gz
rspamd-f3585bb8b0ecc2dc710c9958484748afad38fec6.zip
Fix format issues found by static analysis
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index b42f2241c..42830d700 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -2186,7 +2186,8 @@ rspamd_rcl_parse_struct_keypair (rspamd_mempool_t *pool,
rspamd_snprintf (keybuf, sizeof (keybuf), "%s%s", sk, pk);
}
else {
- rspamd_snprintf (keybuf, sizeof (keybuf), "%*s%s", sem - sk, sk, pk);
+ rspamd_snprintf (keybuf, sizeof (keybuf), "%*s%s", (gint)(sem - sk),
+ sk, pk);
}
key = rspamd_http_connection_make_key (keybuf, strlen (keybuf));