diff options
author | Willem Jan Palenstijn | 2012-05-10 23:05:29 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2012-05-10 23:06:32 +0200 |
commit | f6acc5d5bef3c472fc3788407486a242fdd68a65 (patch) | |
tree | e98b536776c551b3b49b609acb723c7c2d8a9e5c /engines/dreamweb | |
parent | 29a866217f2e8ae5928b53c200b5dba059471894 (diff) | |
download | scummvm-rg350-f6acc5d5bef3c472fc3788407486a242fdd68a65.tar.gz scummvm-rg350-f6acc5d5bef3c472fc3788407486a242fdd68a65.tar.bz2 scummvm-rg350-f6acc5d5bef3c472fc3788407486a242fdd68a65.zip |
DREAMWEB: Fix crash when entering short console password
_inputLine is not a string, so it shouldn't be cast to Common::String.
This fixes bug #3525602.
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/monitor.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp index 95aa400c3a..25435ae0e9 100644 --- a/engines/dreamweb/monitor.cpp +++ b/engines/dreamweb/monitor.cpp @@ -626,15 +626,12 @@ void DreamWebEngine::signOn() { _monAdX = prevX; _monAdY = prevY; - inputLine = (const char *)_inputLine; - inputLine.toUppercase(); - // The entered line has zeroes in-between each character uint32 len = strlen(monitorKeyEntries[foundIndex].password); bool found = true; for (uint32 i = 0; i < len; i++) { - if (monitorKeyEntries[foundIndex].password[i] != inputLine[i * 2]) { + if (monitorKeyEntries[foundIndex].password[i] != _inputLine[i * 2]) { found = false; break; } |