Made config_set_wstring() also update the ANSI version of the string, should fix the FluidSynth soundfont file setting.

This commit is contained in:
OBattler
2017-10-11 08:03:33 +02:00
parent efda4bde0d
commit 89ec4e0fa7

View File

@@ -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, <mgrca8@gmail.com>
@@ -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);
}