From a139ddd8404655d53bb18a456732bbd5276212f1 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 4 Oct 2009 11:05:38 +0000 Subject: SCI: kReadNumber crash fix for lsl1 svn-id: r44597 --- engines/sci/engine/kstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci/engine') 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 */ -- cgit v1.2.3