X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=recvattach.c;h=a0afdeaa14c491fdfab6e5d23cc241725504a0f6;hp=e71d85b731564ee68f5462b63bd20a467bb3eb5e;hb=1dc7032b59cc5b91d70076ed228bda8caf65a7f3;hpb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c diff --git a/recvattach.c b/recvattach.c index e71d85b..a0afdea 100644 --- a/recvattach.c +++ b/recvattach.c @@ -13,6 +13,7 @@ #endif #include +#include #include "mutt.h" #include "ascii.h" @@ -29,8 +30,6 @@ #include "copy.h" #include "mutt_crypt.h" -#include "lib/mem.h" -#include "lib/intl.h" #include "lib/str.h" #include @@ -128,7 +127,7 @@ ATTACHPTR **mutt_gen_attach_list (BODY * m, for (; m; m = m->next) { if (*idxlen == *idxmax) { - mem_realloc (&idx, sizeof (ATTACHPTR *) * ((*idxmax) += 5)); + p_realloc(&idx, (*idxmax) += 5); for (i = *idxlen; i < *idxmax; i++) idx[i] = NULL; }