V4L/DVB (10293): uvcvideo: replace strn{cpy,cat} with strl{cpy,cat}.
authorLaurent Pinchart <laurent.pinchart@skynet.be>
Thu, 8 Jan 2009 17:05:11 +0000 (14:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:26 +0000 (12:42 -0300)
commitd0ebf3073f8812464c9f6014d6cee09ab37c3fb5
treecae1337ef45a319301a668c7cf16918283e6dbb4
parent07f7db4ce7b29d431553b426e0dcb720c5297a4b
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 <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_ctrl.c
drivers/media/video/uvc/uvc_driver.c
drivers/media/video/uvc/uvc_v4l2.c