aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-04 11:05:38 +0000
committerMartin Kiewitz2009-10-04 11:05:38 +0000
commita139ddd8404655d53bb18a456732bbd5276212f1 (patch)
tree655f8ffb88c9b95a64a3e182cc7bbd12c0ae0eca /engines/sci/engine
parente2cc953a9fd5c93b03644da925cb7f48f605c351 (diff)
downloadscummvm-rg350-a139ddd8404655d53bb18a456732bbd5276212f1.tar.gz
scummvm-rg350-a139ddd8404655d53bb18a456732bbd5276212f1.tar.bz2
scummvm-rg350-a139ddd8404655d53bb18a456732bbd5276212f1.zip
SCI: kReadNumber crash fix for lsl1
svn-id: r44597
Diffstat (limited to 'engines/sci/engine')
-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 fd84f96897..f02f5f5636 100644
--- a/engines/sci/engine/kstring.cpp
+++ b/engines/sci/engine/kstring.cpp
@@ -335,7 +335,7 @@ reg_t kReadNumber(EngineState *s, int argc, reg_t *argv) {
Common::String source_str = s->segMan->getString(argv[0]);
const char *source = source_str.c_str();
- while (isspace(*source))
+ while (isspace((unsigned char)*source))
source++; /* Skip whitespace */
if (*source == '$') /* SCI uses this for hex numbers */