aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-06 22:06:08 +0100
committerMax Kellermann <max@duempel.org>2012-03-06 22:06:08 +0100
commit5016839b90274017696e0942f424d4f361d39ea2 (patch)
treee106c4f95f413b6b8252ff867586460cc63931c6 /src/command.c
parentfaf35e6082a8c685140820f334b5c4ecc9ce6666 (diff)
downloadmpd-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 '')
-rw-r--r--src/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index ad64d9b8d..4641f671b 100644
--- a/src/command.c
+++ b/src/command.c
@@ -117,7 +117,8 @@ print_playlist_result(struct client *client,
return COMMAND_RETURN_OK;
case PLAYLIST_RESULT_ERRNO:
- command_error(client, ACK_ERROR_SYSTEM, "%s", strerror(errno));
+ command_error(client, ACK_ERROR_SYSTEM, "%s",
+ g_strerror(errno));
return COMMAND_RETURN_ERROR;
case PLAYLIST_RESULT_DENIED: