[Scummvm-cvs-logs] SF.net SVN: scummvm:[46989] scummvm/trunk/common/util.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Jan 4 21:57:38 CET 2010


Revision: 46989
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46989&view=rev
Author:   thebluegr
Date:     2010-01-04 20:57:38 +0000 (Mon, 04 Jan 2010)

Log Message:
-----------
Implemented the same fix for tag2string() as in commit #44920, thereby fixing an assert in MSVC with the QT player when playing Myst. The parameter passed to isprint() should always be unsigned

Modified Paths:
--------------
    scummvm/trunk/common/util.cpp

Modified: scummvm/trunk/common/util.cpp
===================================================================
--- scummvm/trunk/common/util.cpp	2010-01-04 20:57:19 UTC (rev 46988)
+++ scummvm/trunk/common/util.cpp	2010-01-04 20:57:38 UTC (rev 46989)
@@ -138,7 +138,7 @@
 	str[4] = '\0';
 	// Replace non-printable chars by dot
 	for (int i = 0; i < 4; ++i) {
-		if (!isprint(str[i]))
+		if (!isprint((unsigned char)str[i]))
 			str[i] = '.';
 	}
 	return Common::String(str);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list