X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=b46050ecd35b7061747e61dd20fa8d45c852c6d7;hp=8c0006a9d42ef0853ad63326c3d763465211f5c7;hb=617e7d83d14e14e6a520a48e75437211b16c8834;hpb=49f1156410e9a037404101696d37b2c0d5c67564;ds=sidebyside diff --git a/compose.c b/compose.c index 8c0006a..b46050e 100644 --- a/compose.c +++ b/compose.c @@ -41,7 +41,6 @@ #include "nntp.h" #endif -#include "lib/mem.h" #include "lib/intl.h" #include "lib/str.h" @@ -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; }