summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/achievement.c2
-rw-r--r--src/map/mob.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/achievement.c b/src/map/achievement.c
index fe2c685b5..1fb513ea0 100644
--- a/src/map/achievement.c
+++ b/src/map/achievement.c
@@ -1088,7 +1088,7 @@ static void achievement_readdb_ranks(void)
}
while (entry < libconfig->setting_length(ardb) && entry < MAX_ACHIEVEMENT_RANKS) {
- char rank[8];
+ char rank[16];
if (!(conf = libconfig->setting_get_elem(ardb, entry))) {
ShowError("achievement_readdb_ranks: Could not read value for entry %d, skipping...\n", entry+1);
diff --git a/src/map/mob.c b/src/map/mob.c
index 220ccc182..d398d938c 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -4955,7 +4955,6 @@ static bool mob_skill_db_libconfig_sub_skill(struct config_setting_t *it, int n,
int skill_id = 0;
int skill_idx = 0;
bool clearskills = false;
- char valname[5];
const char *name = config_setting_name(it);
struct mob_skill *ms, gms;
@@ -5055,6 +5054,7 @@ static bool mob_skill_db_libconfig_sub_skill(struct config_setting_t *it, int n,
ms->cond2 = i32;
for (i = 0; i < 5; i++) {
+ char valname[16];
sprintf(valname, "val%1d", i);
if (libconfig->setting_lookup_int(it, valname, &i32))
ms->val[i] = i32;