From d97a1f9c17fd808f8a00aca28cb00e34a4925343 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 14 Jan 2020 19:09:04 +0100 Subject: [PATCH] Fixed some minor bugs in config.c. --- src/config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index 2b9026989..1b1ce3a23 100644 --- a/src/config.c +++ b/src/config.c @@ -2096,7 +2096,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_w(ent->wdata)); + mbstowcs(ent->wdata, ent->data, sizeof(ent->wdata)); } @@ -2115,7 +2115,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_w(ent->wdata)); + mbstowcs(ent->wdata, ent->data, sizeof(ent->wdata)); } @@ -2173,7 +2173,7 @@ config_set_string(char *head, char *name, char *val) ent = create_entry(section, name); memcpy(ent->data, val, sizeof(ent->data)); - mbstowcs(ent->wdata, ent->data, sizeof_w(ent->wdata)); + mbstowcs(ent->wdata, ent->data, sizeof(ent->wdata)); }