Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ead5d238 authored by Jon Mason's avatar Jon Mason Committed by David S. Miller
Browse files

vxge: use strcpy for strings



Use strncpy instead of memcpy when working on strings

Signed-off-by: default avatarJon Mason <jon.mason@exar.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1bacdbb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3451,7 +3451,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__);

	memcpy(buf, dev->name, IFNAMSIZ);
	strncpy(buf, dev->name, IFNAMSIZ);

	/* in 2.6 will call stop() if device is up */
	unregister_netdev(dev);