X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fbrowse.c;h=39bf9801150ce27088f3a681b8b74cda97c45c34;hp=73bfcbc31fdb04dd8076f99c593105288e3d3737;hb=308c7080ccca40d4865d8810f5528331d9ed61ff;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/imap/browse.c b/imap/browse.c index 73bfcbc..39bf980 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -18,10 +18,9 @@ #include #include +#include -#include "lib/mem.h" #include "lib/str.h" -#include "lib/intl.h" #include "lib/debug.h" #include "mutt.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 ".." */