aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorKirben2016-05-17 15:30:18 +1000
committerKirben2016-05-17 15:30:18 +1000
commite5ffd75330cb00372e9e94e08da293cd590dee61 (patch)
treec7cdacc33c254a317c32ddc476093cf60e516652 /engines/agos
parent356ac37471092f2c646b46bc46681e38f5fa2020 (diff)
downloadscummvm-rg350-e5ffd75330cb00372e9e94e08da293cd590dee61.tar.gz
scummvm-rg350-e5ffd75330cb00372e9e94e08da293cd590dee61.tar.bz2
scummvm-rg350-e5ffd75330cb00372e9e94e08da293cd590dee61.zip
AGOS: Fix potential buffer overflow.
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
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;