summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-05-25 05:34:24 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-05-25 05:34:24 +0000
commit963e75d9e72097a8ccb6bec20432d30947fcbe46 (patch)
treee64ff80fe422cd4f2c79c74c2352023331fe3eae /usr.bin/sndiod
parent48672413b7d528f841759bd5b7231d1ac295d640 (diff)
Set initial mixer slot name to "prog" to make all slots visible in
audioctl and alike.
Diffstat (limited to 'usr.bin/sndiod')
-rw-r--r--usr.bin/sndiod/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c
index 24bd81b5d1a..4f1774d37ef 100644
--- a/usr.bin/sndiod/dev.c
+++ b/usr.bin/sndiod/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.25 2016/03/23 06:16:35 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.26 2016/05/25 05:34:23 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -1005,7 +1005,7 @@ dev_new(char *path, struct aparams *par,
d->slot[i].vol = MIDI_MAXCTL;
d->slot[i].tstate = MMC_OFF;
d->slot[i].serial = d->serial++;
- d->slot[i].name[0] = '\0';
+ strlcpy(d->slot[i].name, "prog", SLOT_NAMEMAX);
}
d->slot_list = NULL;
d->master = MIDI_MAXCTL;