]> granicus.if.org Git - php/commitdiff
Fix conversion from unsigned char to char
authorDavid Soria Parra <dsp@php.net>
Fri, 26 Apr 2013 08:55:52 +0000 (10:55 +0200)
committerDavid Soria Parra <dsp@php.net>
Fri, 26 Apr 2013 08:55:52 +0000 (10:55 +0200)
sapi/cgi/cgi_main.c

index 9e6b74ac6164e4dafdd011ae4feff10d8650950a..abe5e6b311e3eeea10e3418db7a16e8e426fbc63 100644 (file)
@@ -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++) {