]> granicus.if.org Git - neomutt/commitdiff
fix sprintf specifiers
authorRichard Russon <rich@flatcap.org>
Fri, 15 Feb 2019 23:23:35 +0000 (23:23 +0000)
committerRichard Russon <rich@flatcap.org>
Sat, 16 Feb 2019 14:53:12 +0000 (14:53 +0000)
config/bool.c
config/quad.c

index ab2bb573cadecb7d1e50498e10fb128a65adbea5..b30c34faf65582eb0e0943601066cc51b1caef57 100644 (file)
@@ -227,7 +227,7 @@ int bool_he_toggle(struct ConfigSet *cs, struct HashElem *he, struct Buffer *err
   char value = *var;
   if ((value < 0) || (value > 1))
   {
-    mutt_buffer_printf(err, "Invalid boolean value: %ld", value);
+    mutt_buffer_printf(err, "Invalid boolean value: %d", value);
     return CSR_ERR_INVALID | CSR_INV_TYPE;
   }
 
index 51467b30d181ab4862651680a18d6534c5fe6359..47b394c05f38b10c46a76a88464adf5a397cd96d 100644 (file)
@@ -240,7 +240,7 @@ int quad_he_toggle(struct ConfigSet *cs, struct HashElem *he, struct Buffer *err
   char value = *var;
   if ((value < 0) || (value >= (mutt_array_size(QuadValues) - 1)))
   {
-    mutt_buffer_printf(err, "Invalid quad value: %ld", value);
+    mutt_buffer_printf(err, "Invalid quad value: %d", value);
     return CSR_ERR_INVALID | CSR_INV_TYPE;
   }