Fixed built (missing 2nd arg for strncpy)

This commit is contained in:
Xinchen Hui 2011-08-09 13:04:35 +00:00
parent 0630945ac4
commit 409022b742

View File

@ -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;