diff options
| author | Xinchen Hui <laruence@php.net> | 2014-10-31 12:25:40 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2014-10-31 12:25:40 +0800 |
| commit | 84783ecb7ea76e88a3831b5dae3e3819347bfbcc (patch) | |
| tree | 1141808f0e9d009c5369a1b41d7186e87fd31ae2 /Zend/zend_virtual_cwd.c | |
| parent | 10107db61ec1ac695bb7167cae49d0e1b7271b11 (diff) | |
| download | php-git-84783ecb7ea76e88a3831b5dae3e3819347bfbcc.tar.gz | |
Fixed outof memory (length == -1)
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 a596b7ca06..e340989744 100644 --- a/Zend/zend_virtual_cwd.c +++ b/Zend/zend_virtual_cwd.c @@ -1394,7 +1394,7 @@ CWD_API int virtual_chdir(const char *path TSRMLS_DC) /* {{{ */ CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path TSRMLS_DC) TSRMLS_DC) /* {{{ */ { - size_t length = strlen(path); + int length = strlen(path); char *temp; int retval; ALLOCA_FLAG(use_heap) |
