diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-09-14 19:34:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-15 20:17:00 +0200 |
commit | 13bb5180e82349d9fcfa11cd17b3c1e7b558a902 (patch) | |
tree | 757b5ea1622e1153fee770530b81294c1c6989cc /drivers/net/ethernet/neterion | |
parent | net: ethernet: freescale: fec_main.c: Cleaning up missing null-terminate in c... (diff) | |
download | linux-13bb5180e82349d9fcfa11cd17b3c1e7b558a902.tar.xz linux-13bb5180e82349d9fcfa11cd17b3c1e7b558a902.zip |
net: ethernet: neterion: vxge: vxge-main.c: Cleaning up missing null-terminate in conjunction with strncpy
Replacing strncpy with strlcpy to avoid strings that lacks null terminate.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion')
-rw-r--r-- | drivers/net/ethernet/neterion/vxge/vxge-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index 4f40d7b8629e..cc0485e3c621 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-main.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c @@ -3537,7 +3537,7 @@ static void vxge_device_unregister(struct __vxge_hw_device *hldev) vxge_debug_entryexit(vdev->level_trace, "%s: %s:%d", vdev->ndev->name, __func__, __LINE__); - strncpy(buf, dev->name, IFNAMSIZ); + strlcpy(buf, dev->name, IFNAMSIZ); flush_work(&vdev->reset_task); |