]> granicus.if.org Git - php/commitdiff
MFH(r1.359): Fixed bug #21708
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 18 Feb 2003 18:14:32 +0000 (18:14 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 18 Feb 2003 18:14:32 +0000 (18:14 +0000)
ext/standard/string.c

index b202f26008590e9b93c213635b6518f4e5955721..762476f0a2e6f63f3c152efc32f79bd38086b697 100644 (file)
@@ -1876,7 +1876,7 @@ PHP_FUNCTION(ucwords)
 
        *r = toupper((unsigned char) *r);
        for (r_end = r + Z_STRLEN_P(return_value) - 1; r < r_end; ) {
-               if (isspace((int) *r++)) {
+               if (isspace((int) *(unsigned char *)r++)) {
                        *r = toupper((unsigned char) *r);
                }
        }