aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFilippos Karapetis2010-01-04 20:57:38 +0000
committerFilippos Karapetis2010-01-04 20:57:38 +0000
commitf7855e1c071fb85e968e7b1446ce668b0cd59e86 (patch)
treefe7f169af65599c5b7fa96262de0c1e0e329bf55 /common
parent184090cb46c5590f42ca4cf5daf452c92e31fef3 (diff)
downloadscummvm-rg350-f7855e1c071fb85e968e7b1446ce668b0cd59e86.tar.gz
scummvm-rg350-f7855e1c071fb85e968e7b1446ce668b0cd59e86.tar.bz2
scummvm-rg350-f7855e1c071fb85e968e7b1446ce668b0cd59e86.zip
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
svn-id: r46989
Diffstat (limited to 'common')
-rw-r--r--common/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/util.cpp b/common/util.cpp
index e5ab3d22ba..e761e3fa01 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -138,7 +138,7 @@ String tag2string(uint32 tag) {
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);