X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=recvattach.c;h=99a8917fcc6574ee2c554cccbfab4688a9dc110c;hp=6277705e237e6161cdcade3ee816e27a18a31a5c;hb=21595f98b7c8132f99abb9fee60ecdce31fc980f;hpb=617e7d83d14e14e6a520a48e75437211b16c8834 diff --git a/recvattach.c b/recvattach.c index 6277705..99a8917 100644 --- a/recvattach.c +++ b/recvattach.c @@ -13,9 +13,11 @@ #endif #include +#include +#include +#include #include "mutt.h" -#include "ascii.h" #include "enter.h" #include "handler.h" #include "recvattach.h" @@ -29,8 +31,6 @@ #include "copy.h" #include "mutt_crypt.h" -#include "lib/intl.h" -#include "lib/str.h" #include #include @@ -106,7 +106,7 @@ void mutt_update_tree (ATTACHPTR ** idx, short idxlen) str_replace (&idx[x]->tree, buf); } else - idx[x]->tree = str_dup (buf); + idx[x]->tree = m_strdup(buf); if (2 * (idx[x]->level + 2) < sizeof (buf) && idx[x]->level) { s = buf + 2 * (idx[x]->level - 1); @@ -647,7 +647,7 @@ void mutt_pipe_attachment_list (FILE * fp, int tag, BODY * top, int filter) filter = 0; /* sanity check: we can't filter in the recv case yet */ buf[0] = 0; - memset (&state, 0, sizeof (STATE)); + p_clear(&state, 1); if (mutt_get_field ((filter ? _("Filter through: ") : _("Pipe to: ")), buf, sizeof (buf), M_CMD) != 0 || !buf[0]) @@ -751,7 +751,7 @@ void mutt_print_attachment_list (FILE * fp, int tag, BODY * top) if (!can_print (top, tag)) return; mutt_endwin (NULL); - memset (&state, 0, sizeof (STATE)); + p_clear(&state, 1); thepid = mutt_create_filter (NONULL (PrintCmd), &state.fpout, NULL, NULL); print_attachment_list (fp, tag, top, &state); fclose (state.fpout);