exit mem_realloc, enters p_realloc/xrealloc.
[apps/madmutt.git] / mx.c
diff --git a/mx.c b/mx.c
index c68b0ac..9400483 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -53,7 +53,6 @@
 
 #include "mutt_crypt.h"
 
-#include "lib/mem.h"
 #include "lib/intl.h"
 #include "lib/str.h"
 #include "lib/list.h"
@@ -1310,8 +1309,8 @@ void mx_alloc_memory (CONTEXT * ctx)
   }
 
   if (ctx->hdrs) {
-    mem_realloc (&ctx->hdrs, sizeof (HEADER *) * (ctx->hdrmax += 25));
-    mem_realloc (&ctx->v2r, sizeof (int) * ctx->hdrmax);
+    p_realloc(&ctx->hdrs, ctx->hdrmax += 25);
+    p_realloc(&ctx->v2r, ctx->hdrmax);
   }
   else {
     ctx->hdrs = p_new(HEADER *, (ctx->hdrmax += 25));