Browse Source

[Minor] Fix format string issues

tags/1.7.0
Vsevolod Stakhov 6 years ago
parent
commit
9ac5c84396
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/client/rspamc.c
  2. 2
    2
      src/libmime/lang_detection.c

+ 1
- 1
src/client/rspamc.c View 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");

+ 2
- 2
src/libmime/lang_detection.c View 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);

Loading…
Cancel
Save