projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exit mem_realloc, enters p_realloc/xrealloc.
[apps/madmutt.git]
/
thread.c
diff --git
a/thread.c
b/thread.c
index
f64dc3f
..
965c897
100644
(file)
--- a/
thread.c
+++ b/
thread.c
@@
-17,7
+17,6
@@
#include "sort.h"
#include "thread.h"
#include "sort.h"
#include "thread.h"
-#include "lib/mem.h"
#include "lib/intl.h"
#include <string.h>
#include "lib/intl.h"
#include <string.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)
/* 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;
}
array[i] = thread;
}