Xiongfeng Wang b312598dd4 media: dibx000_common: use strlcpy() instead of strncpy()
gcc-8 reports

drivers/media/dvb-frontends/dibx000_common.c: In function
'i2c_adapter_init':
./include/linux/string.h:245:9: warning: '__builtin_strncpy' specified
bound 48 equals destination size [-Wstringop-truncation]

We need to use strlcpy() to make sure the dest string is
nul-terminated.

Signed-off-by: Xiongfeng Wang <xiongfeng.wang@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-03-06 06:05:53 -05:00
..
2016-01-25 12:01:08 -02:00
2016-11-13 10:02:22 -08:00
2016-03-03 09:26:05 -03:00
2015-04-08 15:02:07 -03:00
2017-12-12 05:33:18 -05:00