exit mem_realloc, enters p_realloc/xrealloc.
[apps/madmutt.git] / curs_lib.c
index 9f8b8aa..a5b3a22 100644 (file)
@@ -24,7 +24,6 @@
 #include "pager.h"
 #include "mbyte.h"
 
 #include "pager.h"
 #include "mbyte.h"
 
-#include "lib/mem.h"
 #include "lib/intl.h"
 #include "lib/str.h"
 #include "lib/debug.h"
 #include "lib/intl.h"
 #include "lib/str.h"
 #include "lib/debug.h"
@@ -490,7 +489,7 @@ void mutt_ungetch (int ch, int op)
   tmp.op = op;
 
   if (UngetCount >= UngetBufLen)
   tmp.op = op;
 
   if (UngetCount >= UngetBufLen)
-    mem_realloc (&KeyEvent, (UngetBufLen += 128) * sizeof (event_t));
+    p_realloc(&KeyEvent, UngetBufLen += 128);
 
   KeyEvent[UngetCount++] = tmp;
 }
 
   KeyEvent[UngetCount++] = tmp;
 }