projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use safer p_clear when possible.
[apps/madmutt.git]
/
copy.c
diff --git
a/copy.c
b/copy.c
index
2d205de
..
b265b66
100644
(file)
--- a/
copy.c
+++ b/
copy.c
@@
-13,9
+13,9
@@
#include <lib-lib/mem.h>
#include <lib-lib/str.h>
#include <lib-lib/mem.h>
#include <lib-lib/str.h>
+#include <lib-lib/ascii.h>
#include "mutt.h"
#include "mutt.h"
-#include "ascii.h"
#include "handler.h"
#include "mx.h"
#include "copy.h"
#include "handler.h"
#include "mx.h"
#include "copy.h"
@@
-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 */
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)
s.fpin = fpin;
s.fpout = fpout;
if (flags & M_CM_PREFIX)