X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=recvcmd.c;h=17ced5a5e8091dde6b7aa55d4168c5a4acaa3f86;hp=5606c288027c9590b58d8e16b7665ef594456be2;hb=c6b9d35ed9361e4defab9762a7480d5126405ae9;hpb=617e7d83d14e14e6a520a48e75437211b16c8834 diff --git a/recvcmd.c b/recvcmd.c index 5606c28..17ced5a 100644 --- a/recvcmd.c +++ b/recvcmd.c @@ -12,6 +12,9 @@ #endif #include +#include +#include +#include #include "mutt.h" #include "enter.h" @@ -28,8 +31,6 @@ #include "copy.h" #include "mutt_idna.h" -#include "lib/intl.h" -#include "lib/str.h" /* some helper functions to verify that we are exclusively operating * on message/rfc822 attachments @@ -444,7 +445,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 +690,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 +830,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;