]> git.baikalelectronics.ru Git - kernel.git/commit
oss: strlcpy is smart enough
authorJean Delvare <khali@linux-fr.org>
Tue, 8 May 2007 07:25:42 +0000 (00:25 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:01 +0000 (11:15 -0700)
commitb6221fade584f94da7238b2ecf360847c41fb3cf
tree87f0638e6a262b89ddde3780f9e66cd0e1fcbc71
parentf01071daae275418311e410d73ab925aa957e749
oss: 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: Linus Torvalds <torvalds@linux-foundation.org>
sound/oss/btaudio.c