From d21ea095550c560758c4cb5e07b60a4284e7a3dd Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 15 Jan 2020 02:15:42 +0100 Subject: [PATCH] Fixed two more overruns in config.c. --- src/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index e8a9992b7..e33eabac8 100644 --- a/src/config.c +++ b/src/config.c @@ -2099,7 +2099,7 @@ config_set_int(char *head, char *name, int val) ent = create_entry(section, name); sprintf(ent->data, "%i", val); - mbstowcs(ent->wdata, ent->data, sizeof(ent->wdata)); + mbstowcs(ent->wdata, ent->data, sizeof_w(ent->wdata)); } @@ -2118,7 +2118,7 @@ config_set_hex16(char *head, char *name, int val) ent = create_entry(section, name); sprintf(ent->data, "%04X", val); - mbstowcs(ent->wdata, ent->data, sizeof(ent->wdata)); + mbstowcs(ent->wdata, ent->data, sizeof_w(ent->wdata)); }