com php-src: forgot to replace the strlen call: Zend/zend_vir tual_cwd.c

From: Date: Fri, 19 Sep 2014 11:14:16 +0000
Subject: com php-src: forgot to replace the strlen call: Zend/zend_vir tual_cwd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81771@lists.php.net to get a copy of this message
Commit: 3ec7c2808420ad58145d6c6b5aeb1293e81ae12b Author: Anatol Belski <ab@php.net> Fri, 19 Sep 2014 13:14:16 +0200 Parents: 6bbebc60ea0de6ce09ea45094b3bed1823d96cec Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3ec7c2808420ad58145d6c6b5aeb1293e81ae12b Log: forgot to replace the strlen call Changed paths: M Zend/zend_virtual_cwd.c Diff: diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c index acc83ec..dabe6b5 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);

« previous php.cvs (#81771) next »