cvs: php4 /ext/standard/ string.c

[email protected] ("Jouni Ahto") Thu, 01 Jun 2000 14:40:41 -0000
Newsgroups php.version4
Message-ID <cvsjah959870441@cvsserver>
jah		Thu Jun  1 07:40:41 2000 EDT

  Modified files:
    /php4/ext/standard	string.c 
  Log:
  
  (ucwords) Yet another fix for #4748.
  # Last one from me today, I must have a beer now.
  
  
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.120 php4/ext/standard/string.c:1.121
--- php4/ext/standard/string.c:1.120	Thu Jun  1 07:18:45 2000
+++ php4/ext/standard/string.c	Thu Jun  1 07:40:41 2000
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.120 2000/06/01 14:18:45 andrei Exp $ */
+/* $Id: string.c,v 1.121 2000/06/01 14:40:41 jah Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -1155,7 +1155,8 @@
 	*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++;
 		}