From: Michael Elkins Date: Wed, 17 Dec 2003 08:46:50 +0000 (+0000) Subject: Fix possible core dump in mailcap nametemplate handling. X-Git-Tag: mutt-1-5-6-rel~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a607ed85389affd47e2794a2602d881392a8e4f3;p=mutt Fix possible core dump in mailcap nametemplate handling. --- diff --git a/rfc1524.c b/rfc1524.c index f0fc57b8..d360bb47 100644 --- 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 */ {