Commit 6723e65c authored by Qball Cow's avatar Qball Cow

Fix AddId handler, It tried to add the first argument instead of the 2nd.…

Fix AddId handler, It tried to add the first argument instead of the 2nd. Resulting it tries to add "addid" git-svn-id: https://svn.musicpd.org/mpd/trunk@3427 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent bde70294
......@@ -307,7 +307,7 @@ int handleAdd(FILE * fp, unsigned int * permission, int argArrayLength,
int handleAddId(FILE * fp, unsigned int * permission, int argArrayLength,
char ** argArray)
{
return addToPlaylist(fp, argArray[0], 1);
return addToPlaylist(fp, argArray[1], 1);
}
int handleDelete(FILE * fp, unsigned int * permission, int argArrayLength,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment