From: Andre Noll Date: Mon, 23 Jul 2012 06:41:23 +0000 (+0200) Subject: fade: Fix command for switching moods. X-Git-Tag: v0.4.12~48 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=99116592e57d4e910a4b8aae879bbca672e28697;ds=inline 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. --- 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");