summaryrefslogtreecommitdiff
path: root/src/common/mapindex.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-18 21:18:04 +0100
committerHaru <haru@dotalux.com>2015-06-01 10:11:39 +0200
commit2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293 (patch)
treea4533fa3136e43ab6f3a185019539bd0ae0c50b6 /src/common/mapindex.c
parent41583070c88948264eee4e3683686606f88734eb (diff)
downloadhercules-2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293.tar.gz
hercules-2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293.tar.bz2
hercules-2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293.tar.xz
hercules-2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293.zip
Replaced some of the hardcoded values with constants (misc)
- Replaced several hardcoded values with the appropriate enums. - Added documentation for some hardcoded values that haven't been replaced by enums (yet) - Minor code legibility improvements. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/mapindex.c')
-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 035518f68..e07ccd679 100644
--- a/src/common/mapindex.c
+++ b/src/common/mapindex.c
@@ -193,7 +193,7 @@ void mapindex_defaults(void) {
mapindex = &mapindex_s;
/* TODO: place it in inter-server.conf? */
- snprintf(mapindex->config_file, 80, "%s","db/map_index.txt");
+ snprintf(mapindex->config_file, sizeof(mapindex->config_file), "%s","db/map_index.txt");
/* */
mapindex->db = NULL;
mapindex->num = 0;