diff options
author | Eugene Sandulenko | 2016-06-07 15:01:54 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-06-07 22:23:23 +0200 |
commit | 29154f1f2089cbf553599521aa54ac94f452dcef (patch) | |
tree | cebe4ba53d6ce9ec75aa59f7ad48cc85a052bfac /engines/saga | |
parent | 91a848d9be4c90d39badcfad0282c01d5f4b3ac0 (diff) | |
download | scummvm-rg350-29154f1f2089cbf553599521aa54ac94f452dcef.tar.gz scummvm-rg350-29154f1f2089cbf553599521aa54ac94f452dcef.tar.bz2 scummvm-rg350-29154f1f2089cbf553599521aa54ac94f452dcef.zip |
SAGA: FUrther fix to potential buffer overflow
Diffstat (limited to 'engines/saga')
-rw-r--r-- | engines/saga/interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index 9a5e6378b9..c663313f01 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -1170,7 +1170,7 @@ void Interface::processStatusTextInput(Common::KeyState keystate) { _statusTextInputPos--; _statusTextInputString[_statusTextInputPos] = 0; default: - if (_statusTextInputPos > STATUS_TEXT_INPUT_MAX - 1) { // -1 because of the null termination + if (_statusTextInputPos >= STATUS_TEXT_INPUT_MAX - 1) { // -1 because of the null termination break; } if (Common::isAlnum(keystate.ascii) || (keystate.ascii == ' ')) { |