From: David Soria Parra Date: Fri, 26 Apr 2013 08:55:52 +0000 (+0200) Subject: Fix conversion from unsigned char to char X-Git-Tag: php-5.5.0RC1~32^2~19^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc50ba4bf971c62a1ff5b915a0c9f890b04c1087;p=php Fix conversion from unsigned char to char --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 9e6b74ac61..abe5e6b311 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1818,7 +1818,7 @@ int main(int argc, char *argv[]) if((query_string = getenv("QUERY_STRING")) != NULL && strchr(query_string, '=') == NULL) { /* we've got query string that has no = - apache CGI will pass it to command line */ - unsigned char *p; + char *p; decoded_query_string = strdup(query_string); php_url_decode(decoded_query_string, strlen(decoded_query_string)); for (p = decoded_query_string; *p && *p <= ' '; p++) {