X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=nntp%2Fnewsrc.c;h=8f0e514ce4670fc49a86f3dde8f4ba9e3fae99f5;hb=ebad7634114993e2e96fa66fda4b705d05832193;hp=b711b2f595f94fbf8877b41aa4a85c37a92c1b54;hpb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c;p=apps%2Fmadmutt.git diff --git a/nntp/newsrc.c b/nntp/newsrc.c index b711b2f..8f0e514 100644 --- a/nntp/newsrc.c +++ b/nntp/newsrc.c @@ -25,7 +25,6 @@ #include "rfc1524.h" #include "rfc2047.h" -#include "lib/mem.h" #include "lib/str.h" #include "lib/intl.h" #include "lib/debug.h" @@ -510,7 +509,7 @@ static void nntp_create_newsrc_line (NNTP_DATA * data, char **buf, len += *buflen; *buflen *= 2; line = *buf; - mem_realloc (buf, *buflen); + p_realloc(buf, *buflen); line = *buf + (*pline - line); } strcpy (line, data->group); @@ -526,7 +525,7 @@ static void nntp_create_newsrc_line (NNTP_DATA * data, char **buf, *buflen *= 2; *pline = line; line = *buf; - mem_realloc (buf, *buflen); + p_realloc(buf, *buflen); line = *buf + (*pline - line); } if (x) { @@ -596,7 +595,7 @@ void newsrc_gen_entries (CONTEXT * ctx) !ctx->hdrs[x]->read) { if (data->num >= data->max) { data->max = data->max * 2; - mem_realloc (&data->entries, data->max * sizeof (NEWSRC_ENTRY)); + p_realloc(&data->entries, data->max); } data->entries[data->num].first = first; data->entries[data->num].last = last - 1; @@ -616,7 +615,7 @@ void newsrc_gen_entries (CONTEXT * ctx) if (series && first <= data->lastLoaded) { if (data->num >= data->max) { data->max = data->max * 2; - mem_realloc (&data->entries, data->max * sizeof (NEWSRC_ENTRY)); + p_realloc(&data->entries, data->max); } data->entries[data->num].first = first; data->entries[data->num].last = data->lastLoaded;