diff --git a/sndiod/dev.c b/sndiod/dev.c index ed6b961..2c9f549 100644 --- a/sndiod/dev.c +++ b/sndiod/dev.c @@ -1006,7 +1006,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;