X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=recvcmd.c;h=68ad4623dd5aa82cd661b4f1cc9d951bb7266813;hp=5a5e1c45dec53bbac7048650181d81dae3638731;hb=eed5352e46df93f8921d2e6dfdc95b027bad6e1e;hpb=9a1efcc01ddeca4106847f8eb28a704aca2dcf0b diff --git a/recvcmd.c b/recvcmd.c index 5a5e1c4..68ad462 100644 --- a/recvcmd.c +++ b/recvcmd.c @@ -12,6 +12,7 @@ #endif #include +#include #include #include "mutt.h" @@ -29,7 +30,6 @@ #include "copy.h" #include "mutt_idna.h" -#include "lib/str.h" /* some helper functions to verify that we are exclusively operating * on message/rfc822 attachments @@ -444,7 +444,7 @@ static void attach_forward_bodies (FILE * fp, HEADER * hdr, /* initialize a state structure */ - memset (&st, 0, sizeof (st)); + p_clear(&st, 1); if (option (OPTFORWQUOTE)) st.prefix = prefix; @@ -689,7 +689,7 @@ attach_reply_envelope_defaults (ENVELOPE * env, ATTACHPTR ** idx, /* in case followup set Newsgroups: with Followup-To: if it present */ if (!env->newsgroups && curenv && str_casecmp (curenv->followup_to, "poster")) - env->newsgroups = str_dup (curenv->followup_to); + env->newsgroups = m_strdup(curenv->followup_to); } else #endif @@ -829,7 +829,7 @@ void mutt_attach_reply (FILE * fp, HEADER * hdr, else { mutt_make_attribution (Context, parent, tmpfp); - memset (&st, 0, sizeof (STATE)); + p_clear(&st, 1); st.fpin = fp; st.fpout = tmpfp;