diff options
-rw-r--r-- | common/util.cpp | 2 |
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); |