aboutsummaryrefslogtreecommitdiff
path: root/common/str.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-12-13 20:52:09 +0100
committerJohannes Schickel2012-12-13 21:08:47 +0100
commitb0ba4b01a4fee3409768bdced4de6719b51297bc (patch)
tree6ad91afdcee1804f54f911b4abafbac4d51ad3b6 /common/str.cpp
parent7319ccd84f6facbaa3875d1adc31f26cea94d223 (diff)
downloadscummvm-rg350-b0ba4b01a4fee3409768bdced4de6719b51297bc.tar.gz
scummvm-rg350-b0ba4b01a4fee3409768bdced4de6719b51297bc.tar.bz2
scummvm-rg350-b0ba4b01a4fee3409768bdced4de6719b51297bc.zip
COMMON: Add wrapper for isprint.
This is done in the spirit of 658080deeda79d20ea40643569fbcb072573e7cf.
Diffstat (limited to 'common/str.cpp')
-rw-r--r--common/str.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.cpp b/common/str.cpp
index 84805082ac..8210ca6bb8 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -764,7 +764,7 @@ String tag2string(uint32 tag) {
str[4] = '\0';
// Replace non-printable chars by dot
for (int i = 0; i < 4; ++i) {
- if (!isprint((unsigned char)str[i]))
+ if (!Common::isPrint(str[i]))
str[i] = '.';
}
return String(str);