From fcbcfd089a59f755d809010d89f3d1650298a1fa Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Fri, 29 Jan 2016 12:11:23 +0100 Subject: [PATCH] use "prog" as default prog name --- sndiod/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;