summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-08-12 00:58:52 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-08-12 00:58:52 +0000
commit93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53 (patch)
tree981e9591cd93532e591400b35b595735a6eee0b7 /ext/ftp
parent3652ab6032819e4854ae607fe8084cd129791983 (diff)
downloadphp-git-93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53.tar.gz
emalloc -> safe_emalloc
Diffstat (limited to 'ext/ftp')
-rw-r--r--ext/ftp/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 32257a1e73..caeebb421f 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -1635,7 +1635,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
rewind(tmpfp);
- ret = emalloc((lines + 1) * sizeof(char**) + size * sizeof(char*));
+ ret = safe_emalloc((lines + 1), sizeof(char**), size * sizeof(char*));
entry = ret;
text = (char*) (ret + lines + 1);