path: make the "win_charset" buffer static

It is illegal to use it after going out of scope.
This commit is contained in:
Max Kellermann 2013-01-10 17:54:11 +01:00
parent b8cda53bd3
commit dd6c21e092

View File

@ -102,7 +102,7 @@ void path_global_init(void)
* However this is true only if <gstdio.h> helpers are used.
* MPD uses regular <stdio.h> functions.
* Those functions use encoding determined by GetACP(). */
char win_charset[13];
static char win_charset[13];
sprintf(win_charset, "cp%u", GetACP());
charset = win_charset;
#endif