X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-crypt%2Fpgpmicalg.c;h=4e5e836838abdd07f4d2433aefb1f449a60312a3;hp=c30ae752975d0991413cffc0b6f3b69c8b51ec82;hb=6ebff74ad242d4c56fb7762965b19cee14fd2daa;hpb=a8a0d4c970a35774d8b21f530589371c1ee8c184;ds=sidebyside diff --git a/lib-crypt/pgpmicalg.c b/lib-crypt/pgpmicalg.c index c30ae75..4e5e836 100644 --- a/lib-crypt/pgpmicalg.c +++ b/lib-crypt/pgpmicalg.c @@ -137,15 +137,15 @@ static short pgp_find_hash (const char *fname) short rv = -1; - mutt_mktemp (tempfile); - if ((out = safe_fopen (tempfile, "w+")) == NULL) { - mutt_perror (tempfile); + out = m_tempfile (tempfile, sizeof(tempfile), NONULL(Tempdir), NULL); + if (!out) { + mutt_perror (_("Can't create temporary file")); goto bye; } unlink (tempfile); if ((in = fopen (fname, "r")) == NULL) { - mutt_perror (fname); + mutt_perror (_("Can't create temporary file")); goto bye; }