[sword-cvs] sword/src/utilfuns utilstr.cpp,1.26,1.27

sword@www.crosswire.org sword@www.crosswire.org
Mon, 12 Apr 2004 04:14:32 -0700


Update of /cvs/core/sword/src/utilfuns
In directory www:/tmp/cvs-serv29555/src/utilfuns

Modified Files:
	utilstr.cpp 
Log Message:

dglassey: the way toupperstr was before was causing a crash with -O2 on debian gcc
the new way is more readable anyway


Index: utilstr.cpp
===================================================================
RCS file: /cvs/core/sword/src/utilfuns/utilstr.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- utilstr.cpp	18 Jan 2004 18:16:56 -0000	1.26
+++ utilstr.cpp	12 Apr 2004 11:14:30 -0000	1.27
@@ -159,7 +159,7 @@
 	char *ret = buf;
 
 	while (*buf)
-		*buf = SW_toupper(*buf++);
+		*buf++ = SW_toupper(*buf);
 
 	return ret;
 }