]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix format string issues
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 9 Jan 2018 11:42:12 +0000 (11:42 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 9 Jan 2018 18:41:43 +0000 (18:41 +0000)
src/client/rspamc.c
src/libmime/lang_detection.c

index 9a54cb4ab5978bf703a80673482c9a53d798edd7..5b52536284bdf0285303ee32457aba69db5756bc 100644 (file)
@@ -1224,7 +1224,7 @@ rspamc_output_headers (FILE *out, struct rspamd_http_message *msg)
        struct rspamd_http_header *h, *htmp;
 
        HASH_ITER (hh, msg->headers, h, htmp) {
-               rspamd_fprintf (out, "%T: %T\n", h->name, h->value);
+               rspamd_fprintf (out, "%T: %T\n", &h->name, &h->value);
        }
 
        rspamd_fprintf (out, "\n");
index 3dd0a8d63289f79146977449181d28dc6fb7ac33..ce292f1855df153c08435f7e74ab5a679031093a 100644 (file)
@@ -121,8 +121,8 @@ rspamd_language_detector_read_file (struct rspamd_config *cfg,
 
        while ((cur = ucl_object_iterate (freqs, &it, true)) != NULL) {
                const gchar *key;
-               gsize keylen, nsym;
-               guint freq;
+               gsize keylen;
+               guint freq, nsym;
                UChar *ucs_key;
 
                key = ucl_object_keyl (cur, &keylen);