path: make the "win_charset" buffer static
It is illegal to use it after going out of scope.
This commit is contained in:
@ -102,7 +102,7 @@ void path_global_init(void)
|
|||||||
* However this is true only if <gstdio.h> helpers are used.
|
* However this is true only if <gstdio.h> helpers are used.
|
||||||
* MPD uses regular <stdio.h> functions.
|
* MPD uses regular <stdio.h> functions.
|
||||||
* Those functions use encoding determined by GetACP(). */
|
* Those functions use encoding determined by GetACP(). */
|
||||||
char win_charset[13];
|
static char win_charset[13];
|
||||||
sprintf(win_charset, "cp%u", GetACP());
|
sprintf(win_charset, "cp%u", GetACP());
|
||||||
charset = win_charset;
|
charset = win_charset;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user