From: Thomas Roessler Date: Fri, 18 Feb 2000 10:56:24 +0000 (+0000) Subject: In mutt_copy_body(), we also need to strdup() the content-description. X-Git-Tag: mutt-1-1-5-rel~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e79426c5391d09e0786917746f6e985190183fe4;p=mutt In mutt_copy_body(), we also need to strdup() the content-description. --- diff --git a/muttlib.c b/muttlib.c index a1186283..973634e0 100644 --- a/muttlib.c +++ b/muttlib.c @@ -135,16 +135,12 @@ int mutt_copy_body (FILE *fp, BODY **tgt, BODY *src) if (mutt_is_text_type (b->type, b->subtype)) b->noconv = 1; - /* the following code is borrowed from mutt_prepare_template (). - * Does someone have a nice function name for it, so we can re-unite - * it? - */ - b->xtype = safe_strdup (b->xtype); b->subtype = safe_strdup (b->subtype); b->form_name = safe_strdup (b->form_name); b->filename = safe_strdup (b->filename); b->d_filename = safe_strdup (b->d_filename); + b->description = safe_strdup (b->description); /* copy parameters */ for (par = b->parameter, ppar = &b->parameter; par; ppar = &(*ppar)->next, par = par->next) @@ -157,7 +153,6 @@ int mutt_copy_body (FILE *fp, BODY **tgt, BODY *src) mutt_stamp_attachment (b); return 0; - }