From: Xinchen Hui Date: Tue, 9 Aug 2011 13:04:35 +0000 (+0000) Subject: Fixed built (missing 2nd arg for strncpy) X-Git-Tag: php-5.3.7RC5~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=409022b742ac59cd810e51ee7224976104f5008b;p=php Fixed built (missing 2nd arg for strncpy) --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 07441abd82..9c0a666cda 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -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;