projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small fix
[apps/madmutt.git]
/
muttlib.c
diff --git
a/muttlib.c
b/muttlib.c
index
0e4027a
..
bb48e07
100644
(file)
--- a/
muttlib.c
+++ b/
muttlib.c
@@
-13,6
+13,7
@@
#endif
#include <lib-lib/mem.h>
#endif
#include <lib-lib/mem.h>
+#include <lib-lib/macros.h>
#include "mutt.h"
#include "ascii.h"
#include "mutt.h"
#include "ascii.h"
@@
-34,8
+35,6
@@
#include "mutt_crypt.h"
#include "mutt_crypt.h"
-#include "lib/mem.h"
-#include "lib/intl.h"
#include "lib/str.h"
#include "lib/debug.h"
#include "lib/str.h"
#include "lib/debug.h"
@@
-1335,7
+1334,7
@@
int mutt_match_spam_list (const char *s, SPAM_LIST * l, char *text, int x)
for (; l; l = l->next) {
/* If this pattern needs more matches, expand pmatch. */
if (l->nmatch > nmatch) {
for (; l; l = l->next) {
/* If this pattern needs more matches, expand pmatch. */
if (l->nmatch > nmatch) {
-
mem_realloc (&pmatch, l->nmatch * sizeof (regmatch_t)
);
+
p_realloc(&pmatch, l->nmatch
);
nmatch = l->nmatch;
}
nmatch = l->nmatch;
}