aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2017-01-19 15:06:29 -0600
committerPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2017-01-19 15:16:37 -0600
commita6947c624c6557369fff79a8bfab1940e7b022fb (patch)
tree0b8371ea4e14f93205a76095cbd1b4c749b6f08b /examples
parent04fa39f287336c19953939f9523e04d0074a7f29 (diff)
tinymix: fix segfaults with set command
The arguments passed after the set command are not handled properly, leading to segfaults or inability to set controls Example with control 0 which is Headset Volume on my NUC: before fix $ ./tinymix set 0 Segmentation fault $ ./tinymix set 0 10 Segmentation fault $ ./tinymix set 0 10 20 Error: 3 values given, but control only takes 2 After correction $ ./tinymix set 0 no value(s) specified $ ./tinymix set 0 10 $ ./tinymix set 0 10 10 $ ./tinymix set 0 10 10 10 Error: 3 values given, but control only takes 2 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions