diff options
author | Thomas Jansen <mithi@mithi.net> | 2010-09-22 22:24:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-09-23 20:41:23 +0200 |
commit | 9fa3d7c4fa57dbc24a8e80b1bf1be9e2033133c8 (patch) | |
tree | 227c350fbd7f7ba9f6e5438fd36c6cb858ce2e5c /src/playlist_state.c | |
parent | 9423b456a1ea011cc7a946b450bb9e1baace8c63 (diff) | |
download | mpd-9fa3d7c4fa57dbc24a8e80b1bf1be9e2033133c8.tar.gz mpd-9fa3d7c4fa57dbc24a8e80b1bf1be9e2033133c8.tar.xz mpd-9fa3d7c4fa57dbc24a8e80b1bf1be9e2033133c8.zip |
playlist_state: Fix the "state" line in the output
An '\n' was erroneously inserted in the line containing the state, e.g.
"state: \nplay" instead of "state: play".
Fix for bug #2992.
Diffstat (limited to 'src/playlist_state.c')
-rw-r--r-- | src/playlist_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist_state.c b/src/playlist_state.c index 89bb56607..bb9897e01 100644 --- a/src/playlist_state.c +++ b/src/playlist_state.c @@ -59,7 +59,7 @@ playlist_state_save(FILE *fp, const struct playlist *playlist) pc_get_status(&player_status); - fputs(PLAYLIST_STATE_FILE_STATE "\n", fp); + fputs(PLAYLIST_STATE_FILE_STATE, fp); if (playlist->playing) { switch (player_status.state) { |