mirror of
https://github.com/php/php-src.git
synced 2024-11-29 12:53:37 +08:00
Fixed built (missing 2nd arg for strncpy)
This commit is contained in:
parent
0630945ac4
commit
409022b742
@ -473,7 +473,7 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC)
|
||||
if (IS_SLASH(path_info[0])) {
|
||||
length--;
|
||||
}
|
||||
strncpy(filename + length, path_len + 1);
|
||||
strncpy(filename + length, path_info, path_len + 1);
|
||||
}
|
||||
} else {
|
||||
filename = SG(request_info).path_translated;
|
||||
|
Loading…
Reference in New Issue
Block a user