X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fbrowse.c;h=52dcc799f166037c612cd494d5fc20914605add5;hp=73bfcbc31fdb04dd8076f99c593105288e3d3737;hb=617e7d83d14e14e6a520a48e75437211b16c8834;hpb=49f1156410e9a037404101696d37b2c0d5c67564 diff --git a/imap/browse.c b/imap/browse.c index 73bfcbc..52dcc79 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -19,7 +19,6 @@ #include -#include "lib/mem.h" #include "lib/str.h" #include "lib/intl.h" #include "lib/debug.h" @@ -394,11 +393,9 @@ static void imap_add_folder (char delim, char *folder, int noselect, imap_unmunge_mbox_name (folder); if (state->entrylen + 1 == state->entrymax) { - mem_realloc (&state->entry, - sizeof (struct folder_file) * (state->entrymax += 256)); - memset (state->entry + state->entrylen, 0, - (sizeof (struct folder_file) * - (state->entrymax - state->entrylen))); + p_realloc(&state->entry, state->entrymax += 256); + p_clear(state->entry + state->entrylen, + state->entrymax - state->entrylen); } /* render superiors as unix-standard ".." */