Skip to content

Commit

Permalink
net: ethernet: neterion: vxge: vxge-main.c: Cleaning up missing null-…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Rickard Strandqvist authored and David S. Miller committed Sep 15, 2014
1 parent 949bdd2 commit 13bb518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/neterion/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 13bb518

Please sign in to comment.