diff options
-rw-r--r-- | src/pjctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pjctl.c b/src/pjctl.c index 23d60f0..8e6b1e5 100644 --- a/src/pjctl.c +++ b/src/pjctl.c @@ -485,7 +485,7 @@ static int avmute(struct pjctl *pjctl, char **argv, int argc) { struct queue_command *cmd; - int type = -1; + int type = 0; int i; char code; const char *targets[] = { "video", "audio", "av" }; @@ -500,8 +500,7 @@ avmute(struct pjctl *pjctl, char **argv, int argc) } for (i = 0; i < ARRAY_SIZE(targets); ++i) { - int len = strlen(targets[i]); - if (strncmp(argv[1], targets[i], len) == 0) { + if (strcmp(argv[1], targets[i]) == 0) { type = i+1; break; } |