aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2012-05-10 23:05:29 +0200
committerWillem Jan Palenstijn2012-05-10 23:06:32 +0200
commitf6acc5d5bef3c472fc3788407486a242fdd68a65 (patch)
treee98b536776c551b3b49b609acb723c7c2d8a9e5c /engines/dreamweb
parent29a866217f2e8ae5928b53c200b5dba059471894 (diff)
downloadscummvm-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.cpp5
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;
}