summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-08 19:41:38 +0300
committerHaru <haru@dotalux.com>2014-09-08 20:05:49 +0200
commite785879df0519ee69afcac34a1b49db1462d67fc (patch)
tree64abf1147cd3015eac152c25ac6312eced6e5933 /src/common
parentd8a93ff67917fdc02f2539ba6f03edc09870f535 (diff)
downloadhercules-e785879df0519ee69afcac34a1b49db1462d67fc.tar.gz
hercules-e785879df0519ee69afcac34a1b49db1462d67fc.tar.bz2
hercules-e785879df0519ee69afcac34a1b49db1462d67fc.tar.xz
hercules-e785879df0519ee69afcac34a1b49db1462d67fc.zip
Fix on start possible buffer overruns.
Checks after using --enable-sanitize.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mapindex.c2
1 files changed, 1 insertions, 1 deletions
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);