]> git.alsa-project.org Git - alsa-utils.git/commit
amixer: expand local storage for item name according to kernel code
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 8 Apr 2015 16:30:56 +0000 (01:30 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Apr 2015 06:11:05 +0000 (08:11 +0200)
commitf3abdeea00ef7cc07cb44aa43701a278b9c4692f
tree3c592d2b53b3b6cd9c46f740a54163cb7c9301f0
parent1a19ec15385033b59ebfffec954034680575a003
amixer: expand local storage for item name according to kernel code

According to kernel code (snd_ctl_elem_init_enum_names() in
sound/core/control.c), the maximum length of item name is 63 characters
(+ 1 terminator = 64 bytes). But current amixer implementation
uses 40 bytes. This causes name truncation and fail to operation.

This commit fixes this bug by expanding the length of local variables.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
amixer/amixer.c