Use m_tempfile and better errors msg
[apps/madmutt.git] / compose.c
index 96d0bb1..8a8d0c5 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -36,7 +36,7 @@
 #endif
 
 #ifdef USE_NNTP
-#include "nntp.h"
+#include <nntp/nntp.h>
 #endif
 
 static const char *There_are_no_attachments = N_("There are no attachments.");
@@ -1165,7 +1165,7 @@ int mutt_compose_menu (HEADER * msg,    /* structure for new message */
           p_delete(&idx[idxlen]);
           continue;
         }
-        fclose (fp);
+        m_fclose(&fp);
 
         if ((idx[idxlen]->content = mutt_make_file_attach (fname)) == NULL) {
           mutt_error