]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
[media] media: Use strlcpy instead of custom code
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 17 Jul 2014 11:52:08 +0000 (08:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:27:08 +0000 (20:27 -0300)
commitde8eae36057b50086278af1ec4d96fc9a2e35f0b
treea8bb6d6297606bdaa5b2f3e68e26ef88468d11d9
parent62ea864f84fed6e04dd033d500d4c9183a83d590
[media] media: Use strlcpy instead of custom code

Replace strncpy + manually setting the terminating '\0' with an strlcpy
call.

Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c