summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-07-27 10:39:40 +0200
committerGitHub <noreply@github.com>2017-07-27 10:39:40 +0200
commitb04ce31b952c75d5206fbfec68f2a2712da833c3 (patch)
tree9031210c2158e437dec26b26f1135934fe692dbf /src/map/itemdb.c
parent45d2d465591d89d927aadf398cdb6166afe9cd9a (diff)
parent08121dbcef6b6a70e39ba6c5391d605d1f3e3944 (diff)
downloadhercules-b04ce31b952c75d5206fbfec68f2a2712da833c3.tar.gz
hercules-b04ce31b952c75d5206fbfec68f2a2712da833c3.tar.bz2
hercules-b04ce31b952c75d5206fbfec68f2a2712da833c3.tar.xz
hercules-b04ce31b952c75d5206fbfec68f2a2712da833c3.zip
Merge pull request #1811 from 4144/refactor
Refactor status_change_start and fix some issues in other code
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 9a43bae14..2b0847e1a 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -1527,7 +1527,7 @@ void itemdb_read_combos(void)
char filepath[256];
FILE* fp;
- snprintf(filepath, 256, "%s/%s", map->db_path, DBPATH"item_combo_db.txt");
+ safesnprintf(filepath, 256, "%s/%s", map->db_path, DBPATH"item_combo_db.txt");
if ((fp = fopen(filepath, "r")) == NULL) {
ShowError("itemdb_read_combos: File not found \"%s\".\n", filepath);
@@ -2231,7 +2231,7 @@ int itemdb_readdb_libconfig(const char *filename) {
nullpo_ret(filename);
- sprintf(filepath, "%s/%s", map->db_path, filename);
+ safesnprintf(filepath, sizeof(filepath), "%s/%s", map->db_path, filename);
if (!libconfig->load_file(&item_db_conf, filepath))
return 0;