Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #3118

Merged
merged 9 commits into from
Mar 3, 2022
2 changes: 1 addition & 1 deletion src/map/pc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11991,7 +11991,7 @@ static int pc_read_attr_fix_db_entry(struct config_setting_t *def_attr, enum ele
int count = 0;
for (int i = 1; i <= 4; ++i) {
char name[5];
sprintf(name, "Lv%d", i);
safesnprintf(name, 5, "Lv%d", i);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh that's how it supposed to be :)


struct config_setting_t *def_lv = libconfig->setting_lookup(def_attr, name);
if (def_lv != NULL) {
Expand Down