Commit dd6c21e0 authored by Max Kellermann's avatar Max Kellermann

path: make the "win_charset" buffer static

It is illegal to use it after going out of scope.
parent b8cda53b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment