diff options
author | Max Kellermann <max@duempel.org> | 2008-11-22 14:57:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-22 14:57:00 +0100 |
commit | d0779e71ab2692928ed59327bd5ca2e5cd959af6 (patch) | |
tree | 9ac20332d392d865fcafcdf9ed28ba5499349267 | |
parent | a493aafe0209cc7d82e505fdf1cb9cf4bd0895f9 (diff) | |
download | mpd-d0779e71ab2692928ed59327bd5ca2e5cd959af6.tar.gz mpd-d0779e71ab2692928ed59327bd5ca2e5cd959af6.tar.xz mpd-d0779e71ab2692928ed59327bd5ca2e5cd959af6.zip |
command: format strerror() with "%s"
We shouldn't pass strerror() where a format string is expected.
-rw-r--r-- | src/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c index 6a9489d92..8b0202e87 100644 --- a/src/command.c +++ b/src/command.c @@ -205,7 +205,7 @@ print_playlist_result(struct client *client, return COMMAND_RETURN_OK; case PLAYLIST_RESULT_ERRNO: - command_error(client, ACK_ERROR_SYSTEM, strerror(errno)); + command_error(client, ACK_ERROR_SYSTEM, "%s", strerror(errno)); return COMMAND_RETURN_ERROR; case PLAYLIST_RESULT_DENIED: |