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]
/
recvattach.c
diff --git
a/recvattach.c
b/recvattach.c
index
a592e15
..
6277705
100644
(file)
--- a/
recvattach.c
+++ b/
recvattach.c
@@
-29,7
+29,6
@@
#include "copy.h"
#include "mutt_crypt.h"
#include "copy.h"
#include "mutt_crypt.h"
-#include "lib/mem.h"
#include "lib/intl.h"
#include "lib/str.h"
#include "lib/intl.h"
#include "lib/str.h"
@@
-128,7
+127,7
@@
ATTACHPTR **mutt_gen_attach_list (BODY * m,
for (; m; m = m->next) {
if (*idxlen == *idxmax) {
for (; m; m = m->next) {
if (*idxlen == *idxmax) {
-
mem_realloc (&idx, sizeof (ATTACHPTR *) * ((*idxmax) += 5)
);
+
p_realloc(&idx, (*idxmax) += 5
);
for (i = *idxlen; i < *idxmax; i++)
idx[i] = NULL;
}
for (i = *idxlen; i < *idxmax; i++)
idx[i] = NULL;
}
@@
-146,7
+145,7
@@
ATTACHPTR **mutt_gen_attach_list (BODY * m,
}
else {
if (!idx[*idxlen])
}
else {
if (!idx[*idxlen])
- idx[*idxlen] =
(ATTACHPTR *) mem_calloc (1, sizeof (ATTACHPTR)
);
+ idx[*idxlen] =
p_new(ATTACHPTR, 1
);
new = idx[(*idxlen)++];
new->content = m;
new = idx[(*idxlen)++];
new->content = m;