diff options
author | Zeev Suraski <zeev@php.net> | 2000-06-26 16:24:28 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-06-26 16:24:28 +0000 |
commit | c51ba263dd2ad6c5377c46245fe092a98bd91e85 (patch) | |
tree | f615831b32002ddca34a37186e6dc60387969dba /main/php_virtual_cwd.c | |
parent | 91ed009ae2fb0caa480196f70dd1d9989751dae6 (diff) | |
download | php-git-c51ba263dd2ad6c5377c46245fe092a98bd91e85.tar.gz |
- Fix bug in virtual dir under Windows when using absolute paths without
- drive letter
Diffstat (limited to 'main/php_virtual_cwd.c')
-rw-r--r-- | main/php_virtual_cwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_virtual_cwd.c b/main/php_virtual_cwd.c index ea2f09fda5..2c378b760e 100644 --- a/main/php_virtual_cwd.c +++ b/main/php_virtual_cwd.c @@ -296,13 +296,13 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func if (copy_amount) { if (is_absolute) { memcpy(state->cwd, path_copy, copy_amount); + path_copy += copy_amount; } else { memcpy(state->cwd, old_state->cwd, copy_amount); } } state->cwd[copy_amount] = '\0'; state->cwd_length = copy_amount; - path_copy += copy_amount; } |