]> granicus.if.org Git - neomutt/commitdiff
Fix struct Buffer used as %s 1787/head
authorZero King <l2dy@icloud.com>
Wed, 24 Jul 2019 16:51:12 +0000 (16:51 +0000)
committerZero King <l2dy@icloud.com>
Wed, 24 Jul 2019 16:51:12 +0000 (16:51 +0000)
cmd is a Buffer struct, it does not correspond to %s in the format
string.

init.c

diff --git a/init.c b/init.c
index ff060e5f1b1872c4a2640e189c85959608636af3..9f3cf162b4328dee4f000ab5460e2e6ea60cdad5 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2743,7 +2743,7 @@ int mutt_extract_token(struct Buffer *dest, struct Buffer *tok, TokenFlags flags
       pid = mutt_create_filter(cmd.data, NULL, &fp, NULL);
       if (pid < 0)
       {
-        mutt_debug(LL_DEBUG1, "unable to fork command: %s\n", cmd);
+        mutt_debug(LL_DEBUG1, "unable to fork command: %s\n", cmd.data);
         FREE(&cmd.data);
         return -1;
       }