X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=copy.c;h=717265bf42a076295144bd0f37a3dc8532fb9311;hp=bb429f4aeba665fc6497fdf2daf77b5b34059429;hb=d9960a434f5c00a534a0dabe02ae5ab8d4881569;hpb=ecaab35b973fbceb58b5ed174971c82762cc0199 diff --git a/copy.c b/copy.c index bb429f4..717265b 100644 --- a/copy.c +++ b/copy.c @@ -11,8 +11,10 @@ # include "config.h" #endif +#include #include #include +#include #include #include "mutt.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)