projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops, makedoc is used in the build process.
[apps/madmutt.git]
/
edit.c
diff --git
a/edit.c
b/edit.c
index
2f1a377
..
42a3bcf
100644
(file)
--- a/
edit.c
+++ b/
edit.c
@@
-21,7
+21,6
@@
#include "mutt_curses.h"
#include "mutt_idna.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
-#include "lib/mem.h"
#include "lib/intl.h"
#include "lib/str.h"
#include "lib/intl.h"
#include "lib/str.h"
@@
-78,11
+77,11
@@
static char **be_snarf_data (FILE * f, char **buf, int *bufmax, int *buflen,
break;
bytes -= str_len (p);
if (*bufmax == *buflen)
break;
bytes -= str_len (p);
if (*bufmax == *buflen)
-
mem_realloc (&buf, sizeof (char *) * (*bufmax += 25)
);
+
p_realloc(&buf, *bufmax += 25
);
buf[(*buflen)++] = str_dup (tmp);
}
if (buf && *bufmax == *buflen) { /* Do not smash memory past buf */
buf[(*buflen)++] = str_dup (tmp);
}
if (buf && *bufmax == *buflen) { /* Do not smash memory past buf */
-
mem_realloc (&buf, sizeof (char *) * (++*bufmax)
);
+
p_realloc(&buf, ++*bufmax
);
}
if (buf)
buf[*buflen] = NULL;
}
if (buf)
buf[*buflen] = NULL;
@@
-158,7
+157,7
@@
static char **be_include_messages (char *msg, char **buf, int *bufmax,
}
if (*bufmax == *buflen)
}
if (*bufmax == *buflen)
-
mem_realloc (&buf, sizeof (char *) * (*bufmax += 25)
);
+
p_realloc(&buf, *bufmax += 25
);
buf[(*buflen)++] = str_dup (tmp);
bytes = Context->hdrs[n]->content->length;
buf[(*buflen)++] = str_dup (tmp);
bytes = Context->hdrs[n]->content->length;
@@
-172,7
+171,7
@@
static char **be_include_messages (char *msg, char **buf, int *bufmax,
pfx);
if (*bufmax == *buflen)
pfx);
if (*bufmax == *buflen)
-
mem_realloc (&buf, sizeof (char *) * (*bufmax += 25)
);
+
p_realloc(&buf, *bufmax += 25
);
buf[(*buflen)++] = str_dup ("\n");
}
else
buf[(*buflen)++] = str_dup ("\n");
}
else
@@
-442,7
+441,7
@@
int mutt_builtin_editor (const char *path, HEADER * msg, HEADER * cur)
else {
str_cat (tmp, sizeof (tmp), "\n");
if (buflen == bufmax)
else {
str_cat (tmp, sizeof (tmp), "\n");
if (buflen == bufmax)
-
mem_realloc (&buf, sizeof (char *) * (bufmax += 25)
);
+
p_realloc(&buf, bufmax += 25
);
buf[buflen++] = str_dup (tmp[1] == '~' ? tmp + 1 : tmp);
}
buf[buflen++] = str_dup (tmp[1] == '~' ? tmp + 1 : tmp);
}