diff options
author | Max Kellermann <max@duempel.org> | 2012-03-06 22:06:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-06 22:06:08 +0100 |
commit | 5016839b90274017696e0942f424d4f361d39ea2 (patch) | |
tree | e106c4f95f413b6b8252ff867586460cc63931c6 /src/state_file.c | |
parent | faf35e6082a8c685140820f334b5c4ecc9ce6666 (diff) | |
download | mpd-5016839b90274017696e0942f424d4f361d39ea2.tar.gz mpd-5016839b90274017696e0942f424d4f361d39ea2.tar.xz mpd-5016839b90274017696e0942f424d4f361d39ea2.zip |
use g_strerror() instead of strerror()
Make sure we get a UTF-8 encoded string.
Diffstat (limited to 'src/state_file.c')
-rw-r--r-- | src/state_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state_file.c b/src/state_file.c index d7dde6583..de7fa2d02 100644 --- a/src/state_file.c +++ b/src/state_file.c @@ -58,7 +58,7 @@ state_file_write(struct player_control *pc) fp = fopen(state_file_path, "w"); if (G_UNLIKELY(!fp)) { g_warning("failed to create %s: %s", - state_file_path, strerror(errno)); + state_file_path, g_strerror(errno)); return; } @@ -86,7 +86,7 @@ state_file_read(struct player_control *pc) fp = fopen(state_file_path, "r"); if (G_UNLIKELY(!fp)) { g_warning("failed to open %s: %s", - state_file_path, strerror(errno)); + state_file_path, g_strerror(errno)); return; } |