From: Dan Carpenter Date: Mon, 16 Dec 2013 20:19:50 +0000 (-0300) Subject: [media] v4l: omap4iss: use snprintf() to make smatch happy X-Git-Tag: v3.14-rc1~20^2~196 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaf95eeec47e41f30139eaad8c0f3d33c5059d22;p=pandora-kernel.git [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 Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed