move intl.h into lib-lib/macros.h
[apps/madmutt.git] / thread.c
index f64dc3f..c3b78de 100644 (file)
--- a/thread.c
+++ b/thread.c
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/macros.h>
 
 #include "mutt.h"
 #include "sort.h"
 #include "thread.h"
 
-#include "lib/mem.h"
-#include "lib/intl.h"
 
 #include <string.h>
 #include <ctype.h>
@@ -581,7 +580,7 @@ THREAD *mutt_sort_subthreads (THREAD * thread, int init)
         /* put them into the array */
         for (i = 0; thread; i++, thread = thread->prev) {
           if (i >= array_size)
-            mem_realloc (&array, (array_size *= 2) * sizeof (THREAD *));
+            p_realloc(&array, array_size *= 2);
 
           array[i] = thread;
         }