aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/tinymix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/tinymix.c b/utils/tinymix.c
index ff019cd..abab78d 100644
--- a/utils/tinymix.c
+++ b/utils/tinymix.c
@@ -129,7 +129,7 @@ int main(int argc, char **argv)
mixer_close(mixer);
return EXIT_FAILURE;
}
- tinymix_set_value(mixer, argv[optind + 1], &argv[optind + 2], argc - 3);
+ tinymix_set_value(mixer, argv[optind + 1], &argv[optind + 2], argc - optind - 2);
} else if (strcmp(cmd, "controls") == 0) {
tinymix_list_controls(mixer, 0);
} else if (strcmp(cmd, "contents") == 0) {