exit mem_realloc, enters p_realloc/xrealloc.
[apps/madmutt.git] / query.c
diff --git a/query.c b/query.c
index ba3a5a4..58ece1f 100644 (file)
--- a/query.c
+++ b/query.c
@@ -19,7 +19,6 @@
 #include "mapping.h"
 #include "sort.h"
 
-#include "lib/mem.h"
 #include "lib/intl.h"
 #include "lib/str.h"
 #include "lib/debug.h"
@@ -355,7 +354,7 @@ static void query_menu (char *buf, size_t buflen, QUERY * results, int retbuf)
               int clear = 0;
 
               /* append */
-              mem_realloc (&QueryTable, menu->max * sizeof (ENTRY));
+              p_realloc(&QueryTable, menu->max);
 
               menu->data = QueryTable;