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>
This commit is contained in:
Rickard Strandqvist 2014-09-14 19:34:47 +02:00 committed by David S. Miller
parent 949bdd2083
commit 13bb5180e8

View File

@ -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);