projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove some mutt_mktemp
[apps/madmutt.git]
/
commands.c
diff --git
a/commands.c
b/commands.c
index
88d4a11
..
85ff46a
100644
(file)
--- 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_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!");
mutt_error _("Could not create temporary file!");
-
- return (0);
+ return 0;
}
if (DisplayFilter && *DisplayFilter) {
}
if (DisplayFilter && *DisplayFilter) {