From 89ec4e0fa703eacfdada3ab3d55f885bc28522f1 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 11 Oct 2017 08:03:33 +0200 Subject: [PATCH] Made config_set_wstring() also update the ANSI version of the string, should fix the FluidSynth soundfont file setting. --- src/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index fb2fa9174..df93c9183 100644 --- a/src/config.c +++ b/src/config.c @@ -8,7 +8,7 @@ * * Configuration file handler. * - * Version: @(#)config.c 1.0.15 2017/10/09 + * Version: @(#)config.c 1.0.16 2017/10/11 * * Authors: Sarah Walker, * Miran Grca, @@ -1958,6 +1958,7 @@ config_set_wstring(char *head, char *name, wchar_t *val) entry = create_entry(section, name); memcpy(entry->wdata, val, 512); + wcstombs(entry->data, entry->wdata, 256); }