projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exit mem_realloc, enters p_realloc/xrealloc.
[apps/madmutt.git]
/
compose.c
diff --git
a/compose.c
b/compose.c
index
8c0006a
..
b46050e
100644
(file)
--- a/
compose.c
+++ b/
compose.c
@@
-41,7
+41,6
@@
#include "nntp.h"
#endif
#include "nntp.h"
#endif
-#include "lib/mem.h"
#include "lib/intl.h"
#include "lib/str.h"
#include "lib/intl.h"
#include "lib/str.h"
@@
-751,7
+750,7
@@
int mutt_compose_menu (HEADER * msg, /* structure for new message */
if (!(WithCrypto & APPLICATION_PGP))
break;
if (idxlen == idxmax) {
if (!(WithCrypto & APPLICATION_PGP))
break;
if (idxlen == idxmax) {
-
mem_realloc (&idx, sizeof (ATTACHPTR *) * (idxmax += 5)
);
+
p_realloc(&idx, idxmax += 5
);
menu->data = idx;
}
menu->data = idx;
}
@@
-791,8
+790,7
@@
int mutt_compose_menu (HEADER * msg, /* structure for new message */
break;
if (idxlen + numfiles >= idxmax) {
break;
if (idxlen + numfiles >= idxmax) {
- mem_realloc (&idx,
- sizeof (ATTACHPTR *) * (idxmax += 5 + numfiles));
+ p_realloc(&idx, idxmax += 5 + numfiles);
menu->data = idx;
}
menu->data = idx;
}
@@
-919,9
+917,7
@@
int mutt_compose_menu (HEADER * msg, /* structure for new message */
}
if (idxlen + Context->tagged >= idxmax) {
}
if (idxlen + Context->tagged >= idxmax) {
- mem_realloc (&idx,
- sizeof (ATTACHPTR *) * (idxmax +=
- 5 + Context->tagged));
+ p_realloc(&idx, idxmax += 5 + Context->tagged);
menu->data = idx;
}
menu->data = idx;
}
@@
-1193,7
+1189,7
@@
int mutt_compose_menu (HEADER * msg, /* structure for new message */
continue;
}
if (idxlen == idxmax) {
continue;
}
if (idxlen == idxmax) {
-
mem_realloc (&idx, sizeof (ATTACHPTR *) * (idxmax += 5)
);
+
p_realloc(&idx, idxmax += 5
);
menu->data = idx;
}
menu->data = idx;
}