提交 13bb5180 编写于 作者: R Rickard Strandqvist 提交者: David S. Miller

net: ethernet: neterion: vxge: vxge-main.c: Cleaning up missing null-terminate...

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: NRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 949bdd20
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册