]> Git Repo - J-u-boot.git/commit - drivers/net/sandbox-raw-bus.c
sandbox: net: Correct name copy in eth_raw_bus_post_bind()
authorSimon Glass <[email protected]>
Sat, 24 Nov 2018 04:29:27 +0000 (21:29 -0700)
committerSimon Glass <[email protected]>
Wed, 5 Dec 2018 13:01:34 +0000 (06:01 -0700)
commite628bba785a310e80193f9a34c0b53fcb2136c46
treeb843193e32b2fe10ba04972d723ebdf5c432d1fd
parente3491fb11f54e642925f587ed2dd6c98aea9c65d
sandbox: net: Correct name copy in eth_raw_bus_post_bind()

We cannot be sure that the interface name takes up the full length of the
space available to it. Use strcpy() instead of memcpy() in this case. This
corrects a valgrind warning.

Signed-off-by: Simon Glass <[email protected]>
drivers/net/sandbox-raw-bus.c
This page took 0.034768 seconds and 4 git commands to generate.