Fix compilation warnings in mbox.c
[apps/madmutt.git] / sendlib.c
index 03dd11a..02d0ee0 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1231,7 +1231,7 @@ BODY *mutt_make_message_attach (CONTEXT * ctx, HEADER * hdr, int attach_msg)
   fflush (fp);
   rewind (fp);
 
-  body->hdr = mutt_new_header ();
+  body->hdr = header_new();
   body->hdr->offset = 0;
   /* we don't need the user headers here */
   body->hdr->env = mutt_read_rfc822_header (fp, body->hdr, 0, 0);