X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=commands.c;h=85ff46a17635a07778013160531b7ef6e739860a;hp=88d4a11973b67892c7a5e221a7c97ea3c7fd341f;hb=7b392ef7b50798f9eb3e7c869e634c5fef0092d1;hpb=92f2fc3802e13a8eb0717123c588d855fa0de67f diff --git a/commands.c b/commands.c index 88d4a11..85ff46a 100644 --- a/commands.c +++ b/commands.c @@ -55,11 +55,10 @@ int mutt_display_message (HEADER * cur) mutt_parse_mime_message (Context, cur); mutt_message_hook (Context, cur, M_MESSAGEHOOK); - mutt_mktemp (tempfile); - if ((fpout = safe_fopen (tempfile, "w")) == NULL) { + fpout = m_tempfile(tempfile, sizeof(tempfile), NONULL(Tempdir), NULL); + if (!fpout) { mutt_error _("Could not create temporary file!"); - - return (0); + return 0; } if (DisplayFilter && *DisplayFilter) {