[sword-svn] r1953 - trunk/src/mgr
scribe at crosswire.org
scribe at crosswire.org
Sun Nov 12 16:30:05 MST 2006
Author: scribe
Date: 2006-08-04 15:03:40 -0700 (Fri, 04 Aug 2006)
New Revision: 1953
Modified:
trunk/src/mgr/stringmgr.cpp
Log:
Fixed non-UTF8 builds (thanks berkana)
Modified: trunk/src/mgr/stringmgr.cpp
===================================================================
--- trunk/src/mgr/stringmgr.cpp 2006-07-30 19:08:20 UTC (rev 1952)
+++ trunk/src/mgr/stringmgr.cpp 2006-08-04 22:03:40 UTC (rev 1953)
@@ -136,8 +136,9 @@
return 0;
char *ret = buf;
+ bool checkMax = maxlen;
- while (*buf && maxlen--) {
+ while (*buf && (!checkMax || maxlen--)) {
*buf = SW_toupper(*buf);
buf++;
}
More information about the sword-cvs
mailing list