projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use m_tempfile instead of mutt_mktemp
[apps/madmutt.git]
/
handler.c
diff --git
a/handler.c
b/handler.c
index
cc0a3c1
..
0f37639
100644
(file)
--- a/
handler.c
+++ b/
handler.c
@@
-1083,7
+1083,7
@@
static int autoview_handler (BODY * a, STATE * s)
mutt_copy_bytes (s->fpin, fpin, a->length);
if (!piped) {
mutt_copy_bytes (s->fpin, fpin, a->length);
if (!piped) {
-
safe_fclose
(&fpin);
+
m_fclose
(&fpin);
thepid = mutt_create_filter (command, NULL, &fpout, &fperr);
}
else {
thepid = mutt_create_filter (command, NULL, &fpout, &fperr);
}
else {
@@
-1140,12
+1140,12
@@
static int autoview_handler (BODY * a, STATE * s)
}
bail:
}
bail:
-
safe_fclose
(&fpout);
-
safe_fclose
(&fperr);
+
m_fclose
(&fpout);
+
m_fclose
(&fperr);
mutt_wait_filter (thepid);
if (piped)
mutt_wait_filter (thepid);
if (piped)
-
safe_fclose
(&fpin);
+
m_fclose
(&fpin);
else
mutt_unlink (tempfile);
else
mutt_unlink (tempfile);