diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2003-09-26 08:09:56 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2003-09-26 08:09:56 +0000 |
commit | 075e66cc086255ea8a4b2d9583e0a5970918d3e1 (patch) | |
tree | 58daa25a951229913a2162a02d4012d9c9f97c1e /main/fopen_wrappers.c | |
parent | 0a46866d8f7683d637433252147459feba307670 (diff) | |
download | php-git-075e66cc086255ea8a4b2d9583e0a5970918d3e1.tar.gz |
signed/unsigned compiler warning fixes
Diffstat (limited to 'main/fopen_wrappers.c')
-rw-r--r-- | main/fopen_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |