From dd6c21e0922f76b3ae821263677f1f3c559d1ed9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Jan 2013 17:54:11 +0100 Subject: path: make the "win_charset" buffer static It is illegal to use it after going out of scope. --- src/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/path.c') diff --git a/src/path.c b/src/path.c index 59a91a0f7..15277a40b 100644 --- a/src/path.c +++ b/src/path.c @@ -102,7 +102,7 @@ void path_global_init(void) * However this is true only if helpers are used. * MPD uses regular 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 -- cgit v1.2.3