]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: hdpvr: fix compiler warning
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 14 May 2018 12:57:03 +0000 (08:57 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 25 May 2018 19:31:23 +0000 (15:31 -0400)
commitb37705d333c8cf8969ce7ffeb345347a5e7a895f
treea25a7f6e2c46bb855cf1a37a632abf35d2d08d84
parentfd1857240df3a57eacc48cfe179d0406951d4f78
media: hdpvr: fix compiler warning

In function 'strncpy',
    inlined from 'vidioc_g_audio' at media-git/drivers/media/usb/hdpvr/hdpvr-video.c:876:2:
media-git/include/linux/string.h:246:9: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
  return __builtin_strncpy(p, q, size);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/hdpvr/hdpvr-video.c