diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2016-11-20 19:36:36 +0100 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2016-11-20 19:36:36 +0100 |
commit | 06767ffcbe097151b07a26d8d4beb4a102ac853a (patch) | |
tree | 60bc90086bf835b207537e95f9a144f0e6ad5922 /ext/ftp/php_ftp.c | |
parent | d7deaac362e86d2a5f1da8677d4dab4ae35abefc (diff) | |
download | php-git-06767ffcbe097151b07a26d8d4beb4a102ac853a.tar.gz |
Shave off a strlen() call in ftp_mkdir()
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r-- | ext/ftp/php_ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index f9d397ffa3..6686690e3f 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -593,7 +593,7 @@ PHP_FUNCTION(ftp_mkdir) } /* create directorie */ - if (NULL == (tmp = ftp_mkdir(ftp, dir))) { + if (NULL == (tmp = ftp_mkdir(ftp, dir, dir_len))) { php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); RETURN_FALSE; } |