media: replace strncpy() by strscpy()
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 10 Sep 2018 12:19:16 +0000 (08:19 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 29 Mar 2019 14:26:13 +0000 (10:26 -0400)
commit85709cbf152465c77a9c2de48a6f4ef23c8c3d83
tree4dc492b6da48d0d1f9ede150c0c2386f4efb6438
parent060162c1af5cd807384247cc95a0d5cb016e316a
media: replace strncpy() by strscpy()

The strncpy() function is being deprecated upstream. Replace
it by the safer strscpy().

While here, replace a few occurences of strlcpy() that were
recently added to also use strscpy().

Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
35 files changed:
drivers/media/dvb-frontends/as102_fe.c
drivers/media/dvb-frontends/dib7000p.c
drivers/media/dvb-frontends/dib8000.c
drivers/media/dvb-frontends/dib9000.c
drivers/media/dvb-frontends/dvb-pll.c
drivers/media/dvb-frontends/m88ds3103.c
drivers/media/pci/bt8xx/dst.c
drivers/media/pci/mantis/mantis_i2c.c
drivers/media/pci/saa7134/saa7134-go7007.c
drivers/media/platform/am437x/am437x-vpfe.c
drivers/media/platform/davinci/vpfe_capture.c
drivers/media/platform/davinci/vpif_capture.c
drivers/media/platform/davinci/vpif_display.c
drivers/media/platform/exynos4-is/fimc-capture.c
drivers/media/platform/exynos4-is/fimc-m2m.c
drivers/media/platform/imx-pxp.c
drivers/media/platform/mtk-vpu/mtk_vpu.c
drivers/media/platform/mx2_emmaprp.c
drivers/media/platform/s5p-g2d/g2d.c
drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c
drivers/media/platform/ti-vpe/vpe.c
drivers/media/platform/vicodec/vicodec-core.c
drivers/media/platform/vim2m.c
drivers/media/platform/vivid/vivid-core.c
drivers/media/radio/si4713/si4713.c
drivers/media/usb/go7007/go7007-usb.c
drivers/media/usb/go7007/go7007-v4l2.c
drivers/media/usb/hdpvr/hdpvr-video.c
drivers/media/usb/pulse8-cec/pulse8-cec.c
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
drivers/staging/media/bcm2048/radio-bcm2048.c
drivers/staging/media/imx/imx-ic-common.c
drivers/staging/media/imx/imx-media-vdic.c
drivers/staging/media/zoran/zoran_driver.c