X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-crypt%2Fcrypt.c;h=b133addf0b12c1b71a27519df8df7a00889ca43f;hp=f677789b5f10f94c620bd93cd600a58cf68a1391;hb=7b392ef7b50798f9eb3e7c869e634c5fef0092d1;hpb=8476307969a605bea67f6b702b0c1e7a52038bed diff --git a/lib-crypt/crypt.c b/lib-crypt/crypt.c index f677789..b133add 100644 --- 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; - 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; }