media: renesas-ceu: fix compiler warning
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 14 May 2018 13:08:52 +0000 (09:08 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 25 May 2018 19:33:34 +0000 (15:33 -0400)
commit660f059782616aa883bd4e16dbb3c56961275c4e
treeb7fe7305df32a7d8a44b67640e4354b404e9986d
parentbcab64e8762379d67b7b3bb19ec3884394f10b95
media: renesas-ceu: fix compiler warning

In function 'strncpy',
    inlined from 'ceu_notify_complete' at drivers/media/platform/renesas-ceu.c:1378:2:
include/linux/string.h:246:9: warning: '__builtin_strncpy' output truncated before terminating nul copying 11 bytes from a string of the same length [-Wstringop-truncation]
  return __builtin_strncpy(p, q, size);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/renesas-ceu.c