get_mime_tmp_dir(), G_DIR_SEPARATOR, ++id);
if ((dstfp = g_fopen(fname, "wb")) == NULL) {
- FILE_OP_ERROR(fname, "fopen");
+ FILE_OP_ERROR(fname, "g_fopen");
g_free(fname);
gpgme_data_release(plain);
gpgme_release(ctx);
/* write message content to temporary file */
tmpfile = get_tmp_file();
- fp = fopen(tmpfile, "wb");
+ fp = g_fopen(tmpfile, "wb");
if (fp == NULL) {
perror("get_tmp_file");
return FALSE;
procmime_write_mimeinfo(msgcontent, fp);
fclose(fp);
canonicalize_file_replace(tmpfile);
- fp = fopen(tmpfile, "rb");
+ fp = g_fopen(tmpfile, "rb");
if (fp == NULL) {
perror("get_tmp_file");
return FALSE;
}
tmpfile = get_tmp_file();
- fp = fopen(tmpfile, "wb");
+ fp = g_fopen(tmpfile, "wb");
if (fp) {
if (fwrite(enccontent, 1, len, fp) < len) {
FILE_OP_ERROR(tmpfile, "fwrite");