use safer p_clear when possible.
[apps/madmutt.git] / copy.c
diff --git a/copy.c b/copy.c
index bb429f4..b265b66 100644 (file)
--- a/copy.c
+++ b/copy.c
@@ -603,7 +603,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)