[media] atomisp: putting NULs in the wrong place
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 May 2017 13:50:20 +0000 (10:50 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 19 May 2017 09:57:35 +0000 (06:57 -0300)
commitc32e3d1b490e89c592d0c59f10fd267c4847cbaf
tree990c7c3c7e7b5678e3c2eacb911e8575ab01a8d4
parentd1fec5bdeb18ff98fbe317a9454bcd1fe8da1bee
[media] atomisp: putting NULs in the wrong place

We're putting the NUL terminators one space beyond where they belong.
This doesn't show up in testing because all but the callers put a NUL in
the correct place themselves.  LOL.  It causes a static checker warning
about buffer overflows.

Fixes: a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2")

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_include/string_support.h