aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2019-01-15 06:52:22 -0500
committerGitHub <noreply@github.com>2019-01-15 06:52:22 -0500
commit52c1bf5fbdc4c9a47825a1da5e5b7340f35cef66 (patch)
treef845fd4b36a7e145ad6f98cbcc1c5c1dcda16724 /utils
parent7226172357be3bf7ff591499776cf60c90143cad (diff)
parent6d758cee0d326e797d9e128ea308402f4cf69ef1 (diff)
Merge pull request #125 from afordcirrus/master
tinymix: fix use of -D with set command
Diffstat (limited to 'utils')
-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) {