exit mem_realloc, enters p_realloc/xrealloc.
[apps/madmutt.git] / mh.c
diff --git a/mh.c b/mh.c
index ee799b3..8c9bbc7 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -29,7 +29,6 @@
 #include "thread.h"
 #include "hcache.h"
 
-#include "lib/mem.h"
 #include "lib/intl.h"
 #include "lib/str.h"
 #include "lib/debug.h"
@@ -85,7 +84,7 @@ static void mhs_alloc (struct mh_sequences *mhs, int i)
 
   if (i > mhs->max || !mhs->flags) {
     newmax = i + 128;
-    mem_realloc (&mhs->flags, sizeof (mhs->flags[0]) * (newmax + 1));
+    p_realloc(&mhs->flags, newmax + 1);
     for (j = mhs->max + 1; j <= newmax; j++)
       mhs->flags[j] = 0;