aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue_print.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-25 13:23:02 +0200
committerMax Kellermann <max@duempel.org>2010-07-25 13:24:19 +0200
commit9de5bb9e23915f847b59d32d9e857c45974b01d7 (patch)
treee71e30a0c704f23867c79a4602afb22487bdbb27 /src/queue_print.c
parent0c5305c51f9a20efa229cbf825d3d03241887122 (diff)
downloadmpd-9de5bb9e23915f847b59d32d9e857c45974b01d7.tar.gz
mpd-9de5bb9e23915f847b59d32d9e857c45974b01d7.tar.xz
mpd-9de5bb9e23915f847b59d32d9e857c45974b01d7.zip
queue_print: hide HTTP password in the "playlist" command
I've already changed the "playlistinfo" command to hide HTTP passwords, but forgot to do the same for the simpler "playlist" command. This patch changes queue_print_uris() to use the code from song_print_uri().
Diffstat (limited to '')
-rw-r--r--src/queue_print.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/queue_print.c b/src/queue_print.c
index abd201d9f..3b49dee61 100644
--- a/src/queue_print.c
+++ b/src/queue_print.c
@@ -61,11 +61,8 @@ queue_print_uris(struct client *client, const struct queue *queue,
assert(end <= queue_length(queue));
for (unsigned i = start; i < end; ++i) {
- const struct song *song = queue_get(queue, i);
- char *uri = song_get_uri(song);
-
- client_printf(client, "%i:%s\n", i, uri);
- g_free(uri);
+ client_printf(client, "%i:", i);
+ song_print_uri(client, queue_get(queue, i));
}
}