From bf57f7befb5af0c7f3d95b96d6fd1f8a46c056ef Mon Sep 17 00:00:00 2001 From: Strangerke Date: Tue, 23 Jul 2019 07:32:32 +0200 Subject: HDB: Fix an out of bound issue in mapname --- engines/hdb/hdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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); -- cgit v1.2.3