X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=thread.c;h=ac0d67a7f9087f1f4310c4b97a6649e3489206b8;hp=f64dc3fddf51e55f120c8b7b40a5030533d86ae4;hb=d4483b5add8d25008c305b51729f4a53bccfaab8;hpb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c diff --git a/thread.c b/thread.c index f64dc3f..ac0d67a 100644 --- a/thread.c +++ b/thread.c @@ -12,13 +12,12 @@ #endif #include +#include #include "mutt.h" #include "sort.h" #include "thread.h" -#include "lib/mem.h" -#include "lib/intl.h" #include #include @@ -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; } @@ -1285,7 +1284,7 @@ static int link_threads (HEADER * parent, HEADER * child, CONTEXT * ctx) mutt_break_thread (child); child->env->in_reply_to = mutt_new_list (); - child->env->in_reply_to->data = str_dup (parent->env->message_id); + child->env->in_reply_to->data = m_strdup(parent->env->message_id); mutt_set_flag (ctx, child, M_TAG, 0);