summaryrefslogtreecommitdiffstats
path: root/sendlib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-15 01:17:41 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-15 01:17:41 +0000
commita9ea1add36030ef996c8f434a2baadb32ed4357d (patch)
treefaa58bac081be10f228e42223db9204eaf3d3607 /sendlib.c
parent1d7247612a8421a3161ed44cee3647a077a2436c (diff)
Fixing a memory hog which was introduced by the edit-message patch.
Diffstat (limited to 'sendlib.c')
-rw-r--r--sendlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sendlib.c b/sendlib.c
index 8bf1917f..ccd3444a 100644
--- a/sendlib.c
+++ b/sendlib.c
@@ -1024,7 +1024,8 @@ BODY *mutt_make_message_attach (CONTEXT *ctx, HEADER *hdr, int attach_msg)
body->hdr = mutt_new_header();
body->hdr->offset = 0;
- body->hdr->env = mutt_read_rfc822_header(fp, body->hdr);
+ /* we don't need the user headers here */
+ body->hdr->env = mutt_read_rfc822_header(fp, body->hdr, 0);
#ifdef _PGPPATH
body->hdr->pgp = pgp;
#endif /* _PGPPATH */