From: Jouni Ahto Date: Thu, 1 Jun 2000 14:40:41 +0000 (+0000) Subject: (ucwords) Yet another fix for #4748. X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~154 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c106ab8ba069bb507ade639a12c106bfe63b6a65;p=php (ucwords) Yet another fix for #4748. # Last one from me today, I must have a beer now. --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 9b6b4e921c..da8f1d96b6 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1155,7 +1155,8 @@ PHP_FUNCTION(ucwords) *r=toupper((unsigned char)*r); for(r_end = r + return_value->value.str.len - 1 ; r < r_end ; ) { if(isspace((int)*r)) { - *r=toupper((unsigned char)*++r); + r++; + *r=toupper((unsigned char)*r); } else { r++; }