From 71003a2acb7840413cd2e7777fff2c75c20891f0 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 15 Apr 2021 11:27:25 +0200 Subject: [PATCH] alsamixer: increase control device name buffer (sysdefault) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- alsamixer/card_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "-"; -- 2.47.1