summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mixer/mixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/mixer/mixer.c')
-rw-r--r--usr.sbin/mixer/mixer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c
index 2ce07a0..ac60294 100644
--- a/usr.sbin/mixer/mixer.c
+++ b/usr.sbin/mixer/mixer.c
@@ -99,6 +99,10 @@ main(int argc, char *argv[])
if (foo >= SOUND_MIXER_NRDEVICES) {
if (!strcmp("+rec", argv[1]) || !strcmp("-rec", argv[1])) {
+ if (argc != 3) {
+ usage();
+ /* NOTREACHED */
+ }
for (dev = 0; dev < SOUND_MIXER_NRDEVICES && strcmp(names[dev], argv[2]); dev++);
if (dev >= SOUND_MIXER_NRDEVICES)
usage();
OpenPOWER on IntegriCloud