upstream: [media] v4l: omap4iss: use snprintf() to make smatch happy
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 Dec 2013 20:19:50 +0000 (17:19 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:45 +0000 (11:52 +0900)
commitc3dfc4d0299d0701893c0bc159992767c58cf939
tree05711ca7acffa76bb7922baf34a970a2f2d566bf
parent95726ad9aa9eae3a7ca9c743e77c3a57b1e8cf3f
upstream: [media] v4l: omap4iss: use snprintf() to make smatch happy

Smatch complains here because name is a 32 character buffer and we
adding the "OMAP4 ISS " prefix as well for a total of 42 characters.
The sd->name buffer can only hold 32 characters.  I've changed it to use
snprintf() to silence the overflow warning.

Also I have removed the call to strlcpy() which is a no-op.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/omap4iss/iss_csi2.c