From 7a066aa1f38f2382323b71bb578a5f94b1445cdd Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Sat, 16 Mar 2013 21:11:44 +0100 Subject: [PATCH] Fix order of priority command. --- src/libmpdclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libmpdclient.c b/src/libmpdclient.c index 9730612..5f96bb1 100644 --- a/src/libmpdclient.c +++ b/src/libmpdclient.c @@ -2135,7 +2135,7 @@ void mpd_sendSetPrioId(mpd_Connection *connection, int id, int priority) { int len = strlen("prioid ")+1+INTLEN+3+INTLEN+3; char *str = malloc(len); - snprintf(str, len, "prioid \"%d\" \"%d\"\n", priority, id); + snprintf(str, len, "prioid \"%d\" \"%d\"\n", id, priority); mpd_sendInfoCommand(connection, str); free(str); } @@ -2143,7 +2143,7 @@ void mpd_sendSetPrio(mpd_Connection *connection, int pos, int priority) { int len = strlen("prioid ")+1+INTLEN+3+INTLEN+3; char *str = malloc(len); - snprintf(str, len, "prio \"%d\" \"%d\"\n", priority, pos); + snprintf(str, len, "prio \"%d\" \"%d\"\n", pos, priority); mpd_sendInfoCommand(connection, str); free(str); } -- 2.11.4.GIT