From c106ab8ba069bb507ade639a12c106bfe63b6a65 Mon Sep 17 00:00:00 2001 From: Jouni Ahto Date: Thu, 1 Jun 2000 14:40:41 +0000 Subject: [PATCH] (ucwords) Yet another fix for #4748. # Last one from me today, I must have a beer now. --- ext/standard/string.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; } -- 2.50.1