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]
/
lib-crypt
/
crypt.c
diff --git
a/lib-crypt/crypt.c
b/lib-crypt/crypt.c
index
f677789
..
b133add
100644
(file)
--- a/
lib-crypt/crypt.c
+++ b/
lib-crypt/crypt.c
@@
-341,9
+341,9
@@
void crypt_extract_keys_from_messages (HEADER * h)
address_t *tmp = NULL;
FILE *fpout;
address_t *tmp = NULL;
FILE *fpout;
-
mutt_mktemp (tempfname
);
- if (!
(fpout = safe_fopen (tempfname, "w"))
) {
- mutt_
perror (tempfname
);
+
fpout = m_tempfile(tempfname, sizeof(tempfname), NONULL(Tempdir), NULL
);
+ if (!
fpout
) {
+ mutt_
error(_("Could not create temporary file")
);
return;
}
return;
}