]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsamixer: increase control device name buffer (sysdefault)
authorJaroslav Kysela <perex@perex.cz>
Thu, 15 Apr 2021 09:27:25 +0000 (11:27 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 15 Apr 2021 09:27:42 +0000 (11:27 +0200)
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>
alsamixer/card_select.c

index f2ec01f4f3eb19a47927310e67134073c1b1c516..aac7b452ab49cf571b084005298f71f9b60d8dc3 100644 (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 = "-";