From: Dan Carpenter Date: Tue, 21 Apr 2015 09:31:10 +0000 (-0300) Subject: [media] v4l: xilinx: harmless buffer overflow X-Git-Tag: omap-for-v4.3/legacy-v2-signed~140^2~348 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=550f45bc83e7fb4ff454516c20ccfa674f771e37;p=pandora-kernel.git [media] v4l: xilinx: harmless buffer overflow My static checker warns that the name of the port can be 15 characters when you consider the NUL terminator and that's one more than the 14 characters in name[]. Maybe it's an off-by-one? It's unlikely that we hit the limit and even if we do the overflow will only affect one of the two bytes of padding so it's harmless. Still let's fix it and also change the sprintf() to snprintf(). Signed-off-by: Dan Carpenter Acked-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed