aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp
index 03378b7ce8..c637826d22 100644
--- a/engines/sci/engine/kstring.cpp
+++ b/engines/sci/engine/kstring.cpp
@@ -414,7 +414,7 @@ static int is_print_str(char *str) {
if (len == 0) return 1;
while (*str) {
- if (isprint(*str)) printable++;
+ if (isprint((*str & 0xFF))) printable++;
str++;
}