From 7a0415cfd70a02b2280d27556c6c54cef1c86e1a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:18:42 +0000 Subject: zsh-3.1.5-pws-11 --- Src/glob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/glob.c') diff --git a/Src/glob.c b/Src/glob.c index 47fa63567..738753377 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -2177,7 +2177,7 @@ get_match_ret(char *s, int b, int e, int fl, char *replstr) if (replstr) { if ((fl & SUB_GLOBAL) && repllist) { /* We are replacing the chunk, just add this to the list */ - Repldata rd = (Repldata) halloc(sizeof(*rd)); + Repldata rd = (Repldata) zhalloc(sizeof(*rd)); rd->b = b; rd->e = e; addlinknode(repllist, rd); @@ -2481,7 +2481,7 @@ getmatch(char **sp, char *pat, int fl, int n, char *replstr) i = rd->e; /* start of next chunk of *sp */ } lleft += l - i; /* final chunk from *sp */ - start = t = halloc(lleft+1); + start = t = zhalloc(lleft+1); i = 0; for (nd = firstnode(repllist); nd; incnode(nd)) { rd = (Repldata) getdata(nd); -- cgit 1.4.1