]> err.no Git - linux-2.6/commit
[ALSA] sound: strlcpy is smart enough
authorJean Delvare <khali@linux-fr.org>
Tue, 27 Mar 2007 09:50:19 +0000 (11:50 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 11 May 2007 14:55:53 +0000 (16:55 +0200)
commit023ff3eee6255390384e050d9daab1490c88edf8
tree225e8295feab27f88839d14cb9aeb6ad9cb64e33
parent523f1dce37434a9a6623bf46e7893e2b4b10ac3c
[ALSA] sound: strlcpy is smart enough

strlcpy already accounts for the trailing zero in its length
computation, so there is no need to substract one to the buffer size.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/aoa/codecs/snd-aoa-codec-onyx.c
sound/aoa/codecs/snd-aoa-codec-tas.c