]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[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>
Thu, 7 Jul 2011 21:22:37 +0000 (18:22 -0300)
commit775d4038b79f1371af3ed9cfe5ab8592af1b30e2
tree5d4f8787cd84e85e1c06a23289295d07bf62719f
parent7b86e832b4c2b4594ee9556024af46210e69048e
[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