From 409022b742ac59cd810e51ee7224976104f5008b Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Tue, 9 Aug 2011 13:04:35 +0000 Subject: [PATCH] Fixed built (missing 2nd arg for strncpy) --- main/fopen_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 07441abd829..9c0a666cda5 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;