aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-10 17:54:11 +0100
committerMax Kellermann <max@duempel.org>2013-01-10 17:54:11 +0100
commitdd6c21e0922f76b3ae821263677f1f3c559d1ed9 (patch)
treebbbca90755dd4dd63535a6a32b6ad525b01084c2
parentb8cda53bd36809b6f61c2e42a673dfdcd43f0c1d (diff)
downloadmpd-dd6c21e0922f76b3ae821263677f1f3c559d1ed9.tar.gz
mpd-dd6c21e0922f76b3ae821263677f1f3c559d1ed9.tar.xz
mpd-dd6c21e0922f76b3ae821263677f1f3c559d1ed9.zip
path: make the "win_charset" buffer static
It is illegal to use it after going out of scope.
-rw-r--r--src/path.c2
1 files changed, 1 insertions, 1 deletions
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 <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