From: Moriyoshi Koizumi Date: Tue, 18 Feb 2003 18:14:32 +0000 (+0000) Subject: MFH(r1.359): Fixed bug #21708 X-Git-Tag: php-4.3.2RC1~183 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c09220992cb33e115b1efe0a36d6ce8243626dc;p=php MFH(r1.359): Fixed bug #21708 --- diff --git a/ext/standard/string.c b/ext/standard/string.c index b202f26008..762476f0a2 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -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); } }