X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=headers.c;h=f158c1282cff67e5f1ff0bccc45cf59fb1735356;hb=66b3c35e0bb00392991ce83bbf44cbab0ce3fd78;hp=058ec94f4d8b6b1ba3395ae3c6c1c2ddb9e078cc;hpb=230399f9632c37b66c1c117a17e8327eae6b3235;p=apps%2Fmadmutt.git diff --git a/headers.c b/headers.c index 058ec94..f158c12 100644 --- a/headers.c +++ b/headers.c @@ -7,14 +7,6 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include - #include #include @@ -37,8 +29,8 @@ void mutt_edit_headers (const char *editor, struct stat st; string_list_t *cur, **last = NULL, *tmp; - mutt_mktemp (path); - if ((ofp = safe_fopen (path, "w")) == NULL) { + ofp = m_tempfile(path, sizeof(path), NONULL(Tempdir), NULL); + if (!ofp) { mutt_perror (path); return; }