alsamixer: increase control device name buffer (sysdefault)

card_select.c:129:28: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 5 [-Wformat-overflow=]
 129 |   sprintf(buf, "sysdefault:%d", number);

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-04-15 11:27:25 +02:00
parent 0369271aac
commit 71003a2acb

View file

@ -108,7 +108,7 @@ static int get_cards(void)
int count, number, err;
snd_ctl_t *ctl;
snd_ctl_card_info_t *info;
char buf[16];
char buf[32];
struct card *card, *prev_card;
first_card.indexstr = "-";