1
0
Fork 0

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>
hifive-unleashed-5.1
Rickard Strandqvist 2014-09-14 19:34:47 +02:00 committed by David S. Miller
parent 949bdd2083
commit 13bb5180e8
1 changed files with 1 additions and 1 deletions

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