aboutsummaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2005-08-07 18:47:49 +0000
committerQball Cow <qball@qballcow.nl>2005-08-07 18:47:49 +0000
commit6723e65cdf911de203fe20a72f17ee5f3bf73158 (patch)
treec93b24f201a2f6f7b08ff7451d09d3f64ef91941 /src/command.c
parentbde702940945a0ddf35da20e07bb862db7c31583 (diff)
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
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 6b6b670c..7963dc9d 100644
--- a/src/command.c
+++ b/src/command.c
@@ -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,