mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
Fixed built (missing 2nd arg for strncpy)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user