diff options
author | Martin Kiewitz | 2009-10-04 11:05:38 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-04 11:05:38 +0000 |
commit | a139ddd8404655d53bb18a456732bbd5276212f1 (patch) | |
tree | 655f8ffb88c9b95a64a3e182cc7bbd12c0ae0eca /engines/sci/engine | |
parent | e2cc953a9fd5c93b03644da925cb7f48f605c351 (diff) | |
download | scummvm-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.cpp | 2 |
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 */ |