mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 03:18:17 +00:00
SCI: kReadNumber crash fix for lsl1
svn-id: r44597
This commit is contained in:
parent
e2cc953a9f
commit
a139ddd840
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user