projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update gettext copy.
[apps/madmutt.git]
/
nntp
/
newsrc.c
diff --git
a/nntp/newsrc.c
b/nntp/newsrc.c
index
b711b2f
..
8f0e514
100644
(file)
--- a/
nntp/newsrc.c
+++ b/
nntp/newsrc.c
@@
-25,7
+25,6
@@
#include "rfc1524.h"
#include "rfc2047.h"
#include "rfc1524.h"
#include "rfc2047.h"
-#include "lib/mem.h"
#include "lib/str.h"
#include "lib/intl.h"
#include "lib/debug.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;
len += *buflen;
*buflen *= 2;
line = *buf;
-
mem_realloc
(buf, *buflen);
+
p_realloc
(buf, *buflen);
line = *buf + (*pline - line);
}
strcpy (line, data->group);
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;
*buflen *= 2;
*pline = line;
line = *buf;
-
mem_realloc
(buf, *buflen);
+
p_realloc
(buf, *buflen);
line = *buf + (*pline - line);
}
if (x) {
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;
!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;
}
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;
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;
}
data->entries[data->num].first = first;
data->entries[data->num].last = data->lastLoaded;