linux/drivers/net/ethernet/qlogic
Arnd Bergmann 11f711081a net: qed: use correct strncpy() size
passing the strlen() of the source string as the destination
length is pointless, and gcc-8 now warns about it:

drivers/net/ethernet/qlogic/qed/qed_debug.c: In function 'qed_grc_dump':
include/linux/string.h:253: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]

This changes qed_grc_dump_big_ram() to instead uses the length of
the destination buffer, and use strscpy() to guarantee nul-termination.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-02 19:42:29 -05:00
..
netxen netxen: remove timespec usage 2017-11-30 09:26:31 -05:00
qed net: qed: use correct strncpy() size 2018-02-02 19:42:29 -05:00
qede Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2018-01-07 21:26:31 -05:00
qlcnic qlcnic: fix deadlock bug 2018-01-29 17:59:00 -05:00
qlge Merge branch 'akpm' (patches from Andrew) 2017-11-15 19:42:40 -08:00
Kconfig qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla3xxx.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
qla3xxx.h