commit | d0ebf3073f8812464c9f6014d6cee09ab37c3fb5 | [log] [tgz] |
---|---|---|
author | Laurent Pinchart <laurent.pinchart@skynet.be> | Thu Jan 08 14:05:11 2009 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Mon Mar 30 12:42:26 2009 -0300 |
tree | cae1337ef45a319301a668c7cf16918283e6dbb4 | |
parent | 07f7db4ce7b29d431553b426e0dcb720c5297a4b [diff] |
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>