]> granicus.if.org Git - neomutt/commitdiff
Fix possible core dump in mailcap nametemplate handling.
authorMichael Elkins <me@sigpipe.org>
Wed, 17 Dec 2003 08:46:50 +0000 (08:46 +0000)
committerMichael Elkins <me@sigpipe.org>
Wed, 17 Dec 2003 08:46:50 +0000 (08:46 +0000)
rfc1524.c

index f0fc57b802e88f7a5d1322880f4a9188f99d487c..d360bb47426aa3c7b5109ea259c249563fabb3cf 100644 (file)
--- a/rfc1524.c
+++ b/rfc1524.c
@@ -469,7 +469,7 @@ int rfc1524_expand_filename (char *nametemplate,
   }
   else if (!oldfile)
   {
-    snprintf (newfile, nflen, nametemplate, "mutt");
+    mutt_expand_fmt (newfile, nflen, nametemplate, "mutt");
   }
   else /* oldfile && nametemplate */
   {