From e5ffd75330cb00372e9e94e08da293cd590dee61 Mon Sep 17 00:00:00 2001 From: Kirben Date: Tue, 17 May 2016 15:30:18 +1000 Subject: AGOS: Fix potential buffer overflow. --- engines/agos/saveload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/agos') diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index 66a7fa90b3..1ba0f56353 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -494,7 +494,7 @@ void AGOSEngine_Elvira2::userGame(bool load) { i = userGameGetKey(&b, 128); if (b) { - if (i <= 223) { + if (i <= 23) { if (!confirmOverWrite(window)) { listSaveGames(); continue; -- cgit v1.2.3