aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-22 14:57:00 +0100
committerMax Kellermann <max@duempel.org>2008-11-22 14:57:00 +0100
commitd0779e71ab2692928ed59327bd5ca2e5cd959af6 (patch)
tree9ac20332d392d865fcafcdf9ed28ba5499349267
parenta493aafe0209cc7d82e505fdf1cb9cf4bd0895f9 (diff)
downloadmpd-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.c2
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: