From: Anatol Belski Date: Fri, 19 Sep 2014 11:14:16 +0000 (+0200) Subject: forgot to replace the strlen call X-Git-Tag: POST_NATIVE_TLS_MERGE^2~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ec7c2808420ad58145d6c6b5aeb1293e81ae12b;p=php forgot to replace the strlen call --- 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);