aboutsummaryrefslogtreecommitdiff
path: root/Src/pattern.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/pattern.c')
-rw-r--r--Src/pattern.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/pattern.c b/Src/pattern.c
index b5f89f53c..be9f3b568 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -1430,9 +1430,9 @@ pattryrefs(Patprog prog, char *string, int *nump, int *begp, int *endp)
char **matcharr, **mbeginarr, **mendarr;
char numbuf[DIGBUFSIZE];
- matcharr = zcalloc(palen*sizeof(char *));
- mbeginarr = zcalloc(palen*sizeof(char *));
- mendarr = zcalloc(palen*sizeof(char *));
+ matcharr = zshcalloc(palen*sizeof(char *));
+ mbeginarr = zshcalloc(palen*sizeof(char *));
+ mendarr = zshcalloc(palen*sizeof(char *));
sp = patbeginp;
ep = patendp;
@@ -1786,7 +1786,7 @@ patmatch(Upat prog)
oldsyncstr = syncstrp->p;
if (!patinlen)
patinlen = strlen(patinstart)+1;
- syncstrp->p = (unsigned char *)zcalloc(patinlen);
+ syncstrp->p = (unsigned char *)zshcalloc(patinlen);
while ((ret = patmatch(P_OPERAND(scan)))) {
unsigned char *syncpt;
char savchar, *testptr;
@@ -1909,7 +1909,7 @@ patmatch(Upat prog)
if (!ptrp->p) {
if (!patinlen)
patinlen = strlen((char *)patinstart)+1;
- ptrp->p = (unsigned char *)zcalloc(patinlen);
+ ptrp->p = (unsigned char *)zshcalloc(patinlen);
pfree = 1;
}
ptr = ptrp->p + (patinput - patinstart);