aboutsummaryrefslogtreecommitdiff
path: root/Src/Modules/zftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules/zftp.c')
-rw-r--r--Src/Modules/zftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
index 29ae98de5..081c6e2e2 100644
--- a/Src/Modules/zftp.c
+++ b/Src/Modules/zftp.c
@@ -2222,7 +2222,7 @@ zftp_params(char *name, char **args, int flags)
return 0;
}
len = arrlen(args);
- newarr = (char **)zcalloc((len+1)*sizeof(char *));
+ newarr = (char **)zshcalloc((len+1)*sizeof(char *));
for (aptr = args, i = 0; *aptr && !errflag; aptr++, i++) {
char *str;
if (**aptr == '?')
@@ -2935,10 +2935,10 @@ newsession(char *nm)
}
if (!nptr) {
- zfsess = (Zftp_session) zcalloc(sizeof(struct zftp_session));
+ zfsess = (Zftp_session) zshcalloc(sizeof(struct zftp_session));
zfsess->name = ztrdup(nm);
zfsess->cfd = zfsess->dfd = -1;
- zfsess->params = (char **) zcalloc(sizeof(zfparams));
+ zfsess->params = (char **) zshcalloc(sizeof(zfparams));
zaddlinknode(zfsessions, zfsess);
zfsesscnt++;