projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tag unused and kill mktemp
[apps/madmutt.git]
/
lib-crypt
/
pgpmicalg.c
diff --git
a/lib-crypt/pgpmicalg.c
b/lib-crypt/pgpmicalg.c
index
d2743f3
..
4e5e836
100644
(file)
--- 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;
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) {
goto bye;
}
unlink (tempfile);
if ((in = fopen (fname, "r")) == NULL) {
- mutt_perror (
fname
);
+ mutt_perror (
_("Can't create temporary file")
);
goto bye;
}
goto bye;
}
@@
-158,8
+158,8
@@
static short pgp_find_hash (const char *fname)
bye:
bye:
-
safe_fclose
(&in);
-
safe_fclose
(&out);
+
m_fclose
(&in);
+
m_fclose
(&out);
pgp_release_packet ();
return rv;
}
pgp_release_packet ();
return rv;
}