]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb - Use strlcat() correctly
authorTakashi Iwai <tiwai@suse.de>
Fri, 2 Oct 2009 12:06:08 +0000 (14:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 2 Oct 2009 12:06:08 +0000 (14:06 +0200)
commit520d505a036da18519f24d1d0e6242153c0747de
treed56d44b59fb58df714c762296da438e3fbd9fef2
parentc366826677f004f86d333d1ef6fd77e0ba14b4e1
ALSA: usb - Use strlcat() correctly

Don't pass the advanced position to strlcat() but just gives the buffer
head position so that the max size limit can be checked correctly.
Introduced a new helper function to standaralize strlcat() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usbmixer.c