diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-27 01:08:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-27 01:40:12 +0300 |
commit | 415860ebaeb990c0c8da27cc7aa565a137b97fe9 (patch) | |
tree | 379bc512894f445da63207d58c0956ea503a5f01 /src/map/quest.c | |
parent | 30ba171e28b10c5f9355cab5902fa311a234d833 (diff) | |
download | hercules-415860ebaeb990c0c8da27cc7aa565a137b97fe9.tar.gz hercules-415860ebaeb990c0c8da27cc7aa565a137b97fe9.tar.bz2 hercules-415860ebaeb990c0c8da27cc7aa565a137b97fe9.tar.xz hercules-415860ebaeb990c0c8da27cc7aa565a137b97fe9.zip |
Fix possible buffer overflows with snprintf.
Diffstat (limited to 'src/map/quest.c')
-rw-r--r-- | src/map/quest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/quest.c b/src/map/quest.c index 4e3362adb..4c5dcb59f 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -544,7 +544,7 @@ int quest_read_db(void) int i = 0, count = 0; const char *filename = "quest_db.conf"; - snprintf(filepath, 256, "%s/%s", map->db_path, filename); + safesnprintf(filepath, 256, "%s/%s", map->db_path, filename); if (!libconfig->load_file(&quest_db_conf, filepath)) return -1; |