]> git.alsa-project.org Git - alsa-utils.git/commit
alsactl: terminate readlink result string
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 11 Jul 2015 11:23:57 +0000 (13:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 13 Jul 2015 14:37:28 +0000 (16:37 +0200)
commit13c826941445a66ece203a09e6739c979ac5900c
treeb63e1ef9765cbaab06a9d3f8141c13960fe99d97
parent46b60827568ca4aad15eeacbc9dcf8597986ca8e
alsactl: terminate readlink result string

readlink does not guarantee that its result string is nul-terminated.
Instead, increase the buffer by one byte to make sure that we can
add '\0' at the end.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsactl/init_sysfs.c