out = m_tempfile(tmpf, sizeof(tmpf), NONULL(Tempdir), NULL);
if (!out) {
- fclose(in);
+ m_fclose(&in);
return;
}
}
fputs (buf, out);
}
- fclose (in);
- fclose (out);
+ m_fclose(&in);
+ m_fclose(&out);
mutt_set_mtime (hdr->content->filename, tmpf);
unlink (hdr->content->filename);
m_strreplace(&hdr->content->filename, tmpf);