From 075e66cc086255ea8a4b2d9583e0a5970918d3e1 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Fri, 26 Sep 2003 08:09:56 +0000 Subject: signed/unsigned compiler warning fixes --- main/fopen_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index e709327672..5356350917 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -299,7 +299,7 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC) if (s) { /* if there is no path name after the file, do not bother */ /* to try open the directory */ length = s - (path_info + 2); - if (length > sizeof(user) - 1) + if (length > (int)sizeof(user) - 1) length = sizeof(user) - 1; memcpy(user, path_info + 2, length); user[length] = '\0'; -- cgit v1.2.1