From e785879df0519ee69afcac34a1b49db1462d67fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Sep 2014 19:41:38 +0300 Subject: Fix on start possible buffer overruns. Checks after using --enable-sanitize. --- src/common/mapindex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/mapindex.c') diff --git a/src/common/mapindex.c b/src/common/mapindex.c index f540c98d8..0873b3e59 100644 --- a/src/common/mapindex.c +++ b/src/common/mapindex.c @@ -138,7 +138,7 @@ int mapindex_init(void) { char line[1024]; int last_index = -1; int index, total = 0; - char map_name[12]; + char map_name[13]; if( ( fp = fopen(mapindex->config_file,"r") ) == NULL ){ ShowFatalError("Unable to read mapindex config file %s!\n", mapindex->config_file); -- cgit v1.2.3-60-g2f50