diff options
author | Anatol Belski <ab@php.net> | 2014-09-19 13:14:16 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-19 13:14:16 +0200 |
commit | 3ec7c2808420ad58145d6c6b5aeb1293e81ae12b (patch) | |
tree | 195c7535970c6da4580280d1a37105ab0cd5186e /Zend/zend_virtual_cwd.c | |
parent | 6bbebc60ea0de6ce09ea45094b3bed1823d96cec (diff) | |
download | php-git-3ec7c2808420ad58145d6c6b5aeb1293e81ae12b.tar.gz |
forgot to replace the strlen call
Diffstat (limited to 'Zend/zend_virtual_cwd.c')
-rw-r--r-- | Zend/zend_virtual_cwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c index acc83ec38e..dabe6b5fe9 100644 --- a/Zend/zend_virtual_cwd.c +++ b/Zend/zend_virtual_cwd.c @@ -1974,7 +1974,7 @@ CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC) /* {{{ } else { size_t path_len = strlen(path); - if (!IS_ABSOLUTE_PATH(path, strlen(path)) && + if (!IS_ABSOLUTE_PATH(path, path_len) && VCWD_GETCWD(cwd, MAXPATHLEN)) { new_state.cwd = estrdup(cwd); new_state.cwd_length = strlen(cwd); |