From 29154f1f2089cbf553599521aa54ac94f452dcef Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 7 Jun 2016 15:01:54 +0200 Subject: SAGA: FUrther fix to potential buffer overflow --- engines/saga/interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/saga') 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 == ' ')) { -- cgit v1.2.3