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 14:17:00 -0400 |
commit | 13bb5180e82349d9fcfa11cd17b3c1e7b558a902 (patch) | |
tree | 757b5ea1622e1153fee770530b81294c1c6989cc /drivers/net/ethernet/neterion/vxge | |
parent | 949bdd208325a5a947135ed4f8e6df0aa18aae89 (diff) | |
download | op-kernel-dev-13bb5180e82349d9fcfa11cd17b3c1e7b558a902.zip op-kernel-dev-13bb5180e82349d9fcfa11cd17b3c1e7b558a902.tar.gz |
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/vxge')
-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 4f40d7b..cc0485e 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); |