Files
linux/drivers/net/ethernet/qlogic/qed
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
..
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2017-05-30 12:07:01 -04:00
2017-05-18 13:21:40 -04:00
2018-01-02 13:59:16 -05:00
2017-05-21 12:56:53 -04:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2017-01-01 21:02:14 -05:00
2018-01-02 13:59:16 -05:00
2017-05-21 12:56:53 -04:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2017-10-19 12:46:43 +01:00
2017-10-19 12:46:43 +01:00
2018-01-02 13:59:16 -05:00
2017-01-01 21:02:14 -05:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00