[media] gspca: s/strncpy/strlcpy/
authorHans de Goede <hdegoede@redhat.com>
Sun, 5 Jun 2011 17:58:46 +0000 (14:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:42 +0000 (17:53 -0300)
commite7d712cc992a3f22151f15263cbacbb2d38dd371
treea1b417bfb6213d1f4ada160ab1cdccba489e36aa
parent2f2ea0f3f25effeaf0d27f5aaad591281fad27e2
[media] gspca: s/strncpy/strlcpy/

Just like in userspace strncpy does not guarantee 0 termination. Use strlcpy
instead which does guarantee 0 termination.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c
drivers/media/video/gspca/t613.c