summaryrefslogtreecommitdiff
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-02-02 16:44:47 +0100
committerDavid S. Miller <davem@davemloft.net>2018-02-02 19:42:29 -0500
commit11f711081af0eb54190dc0de96ba4a9cd494666b (patch)
treeb898162dc492c9b755befaa473f548d92ed90092 /drivers/net/macvlan.c
parent1a91649fd35ff53a646981e212496f1ae92a8487 (diff)
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>
Diffstat (limited to 'drivers/net/macvlan.c')
0 files changed, 0 insertions, 0 deletions