aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2019-07-23 07:32:32 +0200
committerEugene Sandulenko2019-09-03 17:17:26 +0200
commitbf57f7befb5af0c7f3d95b96d6fd1f8a46c056ef (patch)
tree36464d87f82c42a33c999658faa232fb32641f7a /engines
parent616045496c7fd25b09c6c1554f8fcb02d8e6a706 (diff)
downloadscummvm-rg350-bf57f7befb5af0c7f3d95b96d6fd1f8a46c056ef.tar.gz
scummvm-rg350-bf57f7befb5af0c7f3d95b96d6fd1f8a46c056ef.tar.bz2
scummvm-rg350-bf57f7befb5af0c7f3d95b96d6fd1f8a46c056ef.zip
HDB: Fix an out of bound issue in mapname
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/hdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index e8e75d19bf..837bb962d3 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -879,7 +879,7 @@ Common::Error HDBGame::run() {
#endif
if (ConfMan.hasKey("boot_param")) {
- char mapname[10];
+ char mapname[11];
int arg = ConfMan.getInt("boot_param");
int actionMode = MIN(arg / 100, 1);
int level = MIN(arg % 100, 31);