diff options
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index f1bb8d3e7f..ae8ab14d84 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -1264,7 +1264,7 @@ bool Console::cmdMapInstrument(int argc, const char **argv) { char *instrumentName = new char[11]; Common::strlcpy(instrumentName, argv[1], 11); - for (uint16 i = 0; i < strlen(instrumentName); i++) + for (uint16 i = 0; i < Common::strnlen(instrumentName, 11); i++) if (instrumentName[i] == '_') instrumentName[i] = ' '; |