From: Jaroslav Kysela Date: Thu, 15 Apr 2021 09:27:25 +0000 (+0200) Subject: alsamixer: increase control device name buffer (sysdefault) X-Git-Tag: v1.2.5~38 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=71003a2acb7840413cd2e7777fff2c75c20891f0;p=alsa-utils.git 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 --- diff --git a/alsamixer/card_select.c b/alsamixer/card_select.c index f2ec01f..aac7b45 100644 --- a/alsamixer/card_select.c +++ b/alsamixer/card_select.c @@ -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 = "-";