From 99116592e57d4e910a4b8aae879bbca672e28697 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 23 Jul 2012 08:41:23 +0200 Subject: [PATCH] fade: Fix command for switching moods. It contained a newline, which was not a problem before the sideband API was introduced. However, with sideband being the default, the newline character is interpreted as part of the name of the mood or playlist, causing the mood switch to fail. The fix is simple: Just remove the trailing newline character. --- fade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fade.c b/fade.c index 92aec1e7..52c83c4b 100644 --- a/fade.c +++ b/fade.c @@ -204,7 +204,7 @@ static void change_afs_mode_and_play(char *afs_mode) client_cmd("stop"); if (!afs_mode) return; - cmd = make_message("select %s\n", afs_mode); + cmd = make_message("select %s", afs_mode); client_cmd(cmd); free(cmd); client_cmd("play"); -- 2.39.5