diff options
author | 2016-05-25 05:34:23 +0000 | |
---|---|---|
committer | 2016-05-25 05:34:23 +0000 | |
commit | 3848a133dd7c3a70233d206d07a7b23fe285f87b (patch) | |
tree | 8ac032a35cdeaf25f379bbe73439132232fef275 | |
parent | use -nameopt esc_msb so "NetLock Kft" cert has the non-ascii (diff) | |
download | wireguard-openbsd-3848a133dd7c3a70233d206d07a7b23fe285f87b.tar.xz wireguard-openbsd-3848a133dd7c3a70233d206d07a7b23fe285f87b.zip |
Set initial mixer slot name to "prog" to make all slots visible in
audioctl and alike.
-rw-r--r-- | usr.bin/sndiod/dev.c | 4 |
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; |