projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix regressions
[apps/madmutt.git]
/
enter.c
diff --git
a/enter.c
b/enter.c
index
cda61f2
..
1b97bd4
100644
(file)
--- a/
enter.c
+++ b/
enter.c
@@
-151,7
+151,7
@@
static void replace_part (ENTER_STATE *state, size_t from, const char *buf)
{
/* Save the suffix */
size_t savelen = state->lastchar - state->curpos;
{
/* Save the suffix */
size_t savelen = state->lastchar - state->curpos;
- wchar_t *savebuf =
mem_calloc (savelen, sizeof (wchar_t)
);
+ wchar_t *savebuf =
p_new(wchar_t, savelen
);
memcpy (savebuf, state->wbuf + state->curpos, savelen * sizeof (wchar_t));
memcpy (savebuf, state->wbuf + state->curpos, savelen * sizeof (wchar_t));
@@
-638,7
+638,7
@@
int _mutt_enter_string (char *buf, size_t buflen, int y, int x,
char **tfiles;
*numfiles = 1;
char **tfiles;
*numfiles = 1;
- tfiles =
mem_calloc (*numfiles, sizeof (char *)
);
+ tfiles =
p_new(char *, *numfiles
);
mutt_expand_path (buf, buflen);
tfiles[0] = str_dup (buf);
*files = tfiles;
mutt_expand_path (buf, buflen);
tfiles[0] = str_dup (buf);
*files = tfiles;