use g_strerror() instead of strerror()
Make sure we get a UTF-8 encoded string.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user