cvs: php4 /ext/standard/ string.c

From: Date: Thu, 01 Jun 2000 13:38:23 +0000
Subject: cvs: php4 /ext/standard/ string.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-16019@lists.php.net to get a copy of this message
jah Thu Jun 1 06:38:23 2000 EDT Modified files: /php4/ext/standard string.c Log: (ucwords) Fixed fix for fix for fix for #4748. # Today's most fixed bug. Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.118 php4/ext/standard/string.c:1.119 --- php4/ext/standard/string.c:1.118 Thu Jun 1 04:47:48 2000 +++ php4/ext/standard/string.c Thu Jun 1 06:38:23 2000 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.118 2000/06/01 11:47:48 hholzgra Exp $ */ +/* $Id: string.c,v 1.119 2000/06/01 13:38:23 jah Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -1153,9 +1153,11 @@ r=return_value->value.str.val; *r=toupper((unsigned char)*r); - for(r_end = r + return_value->value.str.len -1 ; r < r_end ; r++ ) { + for(r_end = r + return_value->value.str.len -1 ; r < r_end ; ) { if(isspace(*r)) { - *++r=toupper((unsigned char)*r); + *r=toupper((unsigned char)*++r); + } else { + r++; } } }

« previous php.version4 (#16019) next »