summaryrefslogtreecommitdiff
path: root/Zend/zend_virtual_cwd.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-09-19 13:14:16 +0200
committerAnatol Belski <ab@php.net>2014-09-19 13:14:16 +0200
commit3ec7c2808420ad58145d6c6b5aeb1293e81ae12b (patch)
tree195c7535970c6da4580280d1a37105ab0cd5186e /Zend/zend_virtual_cwd.c
parent6bbebc60ea0de6ce09ea45094b3bed1823d96cec (diff)
downloadphp-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.c2
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);