[sword-svn] r3898 - trunk/src/mgr

scribe at crosswire.org scribe at crosswire.org
Mon Mar 3 08:49:36 EST 2025


Author: scribe
Date: 2025-03-03 08:49:36 -0500 (Mon, 03 Mar 2025)
New Revision: 3898

Modified:
   trunk/src/mgr/stringmgr.cpp
Log:
fix bug in non-icu stringmgr toupper


Modified: trunk/src/mgr/stringmgr.cpp
===================================================================
--- trunk/src/mgr/stringmgr.cpp	2025-03-03 13:48:49 UTC (rev 3897)
+++ trunk/src/mgr/stringmgr.cpp	2025-03-03 13:49:36 UTC (rev 3898)
@@ -238,7 +238,7 @@
 		it = toUpperData.find(ch);
 		getUTF8FromUniChar(it == toUpperData.end() ? ch : it->second, &text);
 	}
-	long len = maxlen ? (text.size() < maxlen ? text.size() : (maxlen - 1)) : 0;
+	long len = maxlen ? (text.size() < maxlen ? text.size() : (maxlen - 1)) : text.size();
 	if (len) memcpy(t, text.c_str(), len);
 	t[len] = 0;
 #endif



More information about the sword-cvs mailing list