X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=compose.c;h=f057003bf28ee834df08c19a862344a270530991;hb=9a1efcc01ddeca4106847f8eb28a704aca2dcf0b;hp=8c0006a9d42ef0853ad63326c3d763465211f5c7;hpb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c;p=apps%2Fmadmutt.git diff --git a/compose.c b/compose.c index 8c0006a..f057003 100644 --- a/compose.c +++ b/compose.c @@ -16,6 +16,7 @@ #endif #include +#include #include "mutt.h" #include "enter.h" @@ -41,8 +42,6 @@ #include "nntp.h" #endif -#include "lib/mem.h" -#include "lib/intl.h" #include "lib/str.h" #include @@ -751,7 +750,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ if (!(WithCrypto & APPLICATION_PGP)) break; if (idxlen == idxmax) { - mem_realloc (&idx, sizeof (ATTACHPTR *) * (idxmax += 5)); + p_realloc(&idx, idxmax += 5); menu->data = idx; } @@ -791,8 +790,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ break; if (idxlen + numfiles >= idxmax) { - mem_realloc (&idx, - sizeof (ATTACHPTR *) * (idxmax += 5 + numfiles)); + p_realloc(&idx, idxmax += 5 + numfiles); menu->data = idx; } @@ -919,9 +917,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ } if (idxlen + Context->tagged >= idxmax) { - mem_realloc (&idx, - sizeof (ATTACHPTR *) * (idxmax += - 5 + Context->tagged)); + p_realloc(&idx, idxmax += 5 + Context->tagged); menu->data = idx; } @@ -1193,7 +1189,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ continue; } if (idxlen == idxmax) { - mem_realloc (&idx, sizeof (ATTACHPTR *) * (idxmax += 5)); + p_realloc(&idx, idxmax += 5); menu->data = idx; }