From: Laurent Pinchart Date: Thu, 8 Jan 2009 17:05:11 +0000 (-0300) Subject: V4L/DVB (10293): uvcvideo: replace strn{cpy,cat} with strl{cpy,cat}. X-Git-Tag: v2.6.30-rc1~621^2~671 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0ebf3073f8812464c9f6014d6cee09ab37c3fb5;p=pandora-kernel.git V4L/DVB (10293): uvcvideo: replace strn{cpy,cat} with strl{cpy,cat}. strncpy is unsafe as it doesn't append a terminating NUL character when the source string doesn't fit in the destination buffer. Replace it with strlcpy. strncat is misused as its size argument refers to the source string, not the destination buffer. Replace it with strlcat. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed