X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=copy.c;h=717265bf42a076295144bd0f37a3dc8532fb9311;hp=2d205de037679b6bc9a8f402b0e36f2387ea2f37;hb=d9960a434f5c00a534a0dabe02ae5ab8d4881569;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/copy.c b/copy.c index 2d205de..717265b 100644 --- a/copy.c +++ b/copy.c @@ -11,11 +11,13 @@ # include "config.h" #endif +#include #include #include +#include +#include #include "mutt.h" -#include "ascii.h" #include "handler.h" #include "mx.h" #include "copy.h" @@ -603,7 +605,7 @@ _mutt_copy_message (FILE * fpout, FILE * fpin, HEADER * hdr, BODY * body, if (flags & M_CM_DECODE) { /* now make a text/plain version of the message */ - memset (&s, 0, sizeof (STATE)); + p_clear(&s, 1); s.fpin = fpin; s.fpout = fpout; if (flags & M_CM_PREFIX)