exit mem_realloc, enters p_realloc/xrealloc.
[apps/madmutt.git] / pgpkey.c
index 1136ee5..2ac3ce1 100644 (file)
--- a/pgpkey.c
+++ b/pgpkey.c
@@ -25,7 +25,6 @@
 #include "pager.h"
 #include "sort.h"
 
-#include "lib/mem.h"
 #include "lib/intl.h"
 #include "lib/str.h"
 #include "lib/debug.h"
@@ -455,7 +454,7 @@ static pgp_key_t pgp_select_key (pgp_key_t keys, ADDRESS * p, const char *s)
 
       if (i == keymax) {
         keymax += 5;
-        mem_realloc (&KeyTable, sizeof (pgp_uid_t *) * keymax);
+        p_realloc(&KeyTable, keymax);
       }
 
       KeyTable[i++] = a;