X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=headers.c;h=f158c1282cff67e5f1ff0bccc45cf59fb1735356;hb=942efc4dec4e092c10aaf50b93e316131b6a1aa8;hp=d94019de9017ee0b3292c4df1532ef0bb39ca859;hpb=23e6291cb5d5b4cd2008403d8b628007fd75ff23;p=apps%2Fmadmutt.git diff --git a/headers.c b/headers.c index d94019d..f158c12 100644 --- a/headers.c +++ b/headers.c @@ -7,17 +7,8 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include - -#include -#include -#include +#include +#include #include "mutt.h" #include "alias.h" @@ -38,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; }