diff options
author | Ibrahem Zidan <brahem@aotsw.com> | 2020-06-01 18:38:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 18:38:10 +0200 |
commit | 48da9b67cf05664750313b86d656652b5ed8c5ed (patch) | |
tree | aaeb59cf90da1a531f47977997c13afad1b4e0e2 /src/map/skill.c | |
parent | 380eba3b364b915cff8b34a343d482454a0bccc0 (diff) | |
parent | 677c78b6b73ffe0cf49eb1b435a11dc7149ebb6a (diff) | |
download | hercules-48da9b67cf05664750313b86d656652b5ed8c5ed.tar.gz hercules-48da9b67cf05664750313b86d656652b5ed8c5ed.tar.bz2 hercules-48da9b67cf05664750313b86d656652b5ed8c5ed.tar.xz hercules-48da9b67cf05664750313b86d656652b5ed8c5ed.zip |
Merge pull request #2759 from HerculesWS/fix-errors
Fix errors in the ci builds
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 765e3b6bf..25d10b825 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -20662,8 +20662,8 @@ static void skill_validate_name(struct config_setting_t *conf, struct s_skill_db ShowError("%s: No name specified for skill ID %d in %s! Skipping skill...\n", __func__, sk->nameid, conf->file); else if (strlen(name) >= sizeof(sk->name)) - ShowError("%s: Specified name %s for skill ID %d in %s is too long: %lu! Maximum is %lu. Skipping skill...\n", - __func__, name, sk->nameid, conf->file, strlen(name), sizeof(sk->name) - 1); + ShowError("%s: Specified name %s for skill ID %d in %s is too long: %d! Maximum is %d. Skipping skill...\n", + __func__, name, sk->nameid, conf->file, (int)strlen(name), (int)sizeof(sk->name) - 1); else if (skill->name_contains_invalid_character(name)) ShowError("%s: Specified name %s for skill ID %d in %s contains invalid characters! Allowed characters are letters, numbers and underscores. Skipping skill...\n", __func__, name, sk->nameid, conf->file); @@ -20719,8 +20719,8 @@ static void skill_validate_description(struct config_setting_t *conf, struct s_s if (libconfig->setting_lookup_string(conf, "Description", &description) == CONFIG_TRUE && *description != '\0') { if (strlen(description) >= sizeof(sk->desc)) - ShowWarning("%s: Specified description '%s' for skill ID %d in %s is too long: %lu! Maximum is %lu. Trimming...\n", - __func__, description, sk->nameid, conf->file, strlen(description), sizeof(sk->desc) - 1); + ShowWarning("%s: Specified description '%s' for skill ID %d in %s is too long: %d! Maximum is %d. Trimming...\n", + __func__, description, sk->nameid, conf->file, (int)strlen(description), (int)sizeof(sk->desc) - 1); safestrncpy(sk->desc, description, sizeof(sk->desc)); } |