Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
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;
}