diff options
author | Johannes Schickel | 2012-12-13 20:52:09 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-12-13 21:08:47 +0100 |
commit | b0ba4b01a4fee3409768bdced4de6719b51297bc (patch) | |
tree | 6ad91afdcee1804f54f911b4abafbac4d51ad3b6 /common/str.cpp | |
parent | 7319ccd84f6facbaa3875d1adc31f26cea94d223 (diff) | |
download | scummvm-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.cpp | 2 |
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); |