fclose -> m_fclose
[apps/madmutt.git] / lib-mime / rfc3676.c
index 133fe3c..68bf1f5 100644 (file)
@@ -227,7 +227,7 @@ void rfc3676_space_stuff (HEADER* hdr) {
 
   out = m_tempfile(tmpf, sizeof(tmpf), NONULL(Tempdir), NULL);
   if (!out) {
 
   out = m_tempfile(tmpf, sizeof(tmpf), NONULL(Tempdir), NULL);
   if (!out) {
-    fclose(in);
+    m_fclose(&in);
     return;
   }
 
     return;
   }
 
@@ -237,8 +237,8 @@ void rfc3676_space_stuff (HEADER* hdr) {
     }
     fputs (buf, out);
   }
     }
     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);
   mutt_set_mtime (hdr->content->filename, tmpf);
   unlink (hdr->content->filename);
   m_strreplace(&hdr->content->filename, tmpf);