aboutsummaryrefslogtreecommitdiff
path: root/Src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/parse.c b/Src/parse.c
index b3072201a..ddb163986 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -2064,7 +2064,7 @@ dupeprog(Eprog p, int heap)
r->len = p->len;
r->npats = p->npats;
pp = r->pats = (heap ? (Patprog *) hcalloc(r->len) :
- (Patprog *) zcalloc(r->len));
+ (Patprog *) zshcalloc(r->len));
r->prog = (Wordcode) (r->pats + r->npats);
r->strs = ((char *) r->prog) + (p->strs - ((char *) p->prog));
memcpy(r->prog, p->prog, r->len - (p->npats * sizeof(Patprog)));
@@ -3161,7 +3161,7 @@ dump_autoload(char *nam, char *file, int on, char *ops, int func)
for (n = firstfdhead(h), e = (FDHead) (h + fdheaderlen(h)); n < e;
n = nextfdhead(n)) {
- shf = (Shfunc) zcalloc(sizeof *shf);
+ shf = (Shfunc) zshcalloc(sizeof *shf);
shf->flags = on;
shf->funcdef = mkautofn(shf);
shfunctab->addnode(shfunctab, ztrdup(fdname(n) + fdhtail(n)), shf);