From: Jon Mason Date: Mon, 29 Nov 2010 18:02:46 +0000 (+0000) Subject: vxge: use strcpy for strings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ead5d238146981f922e3848fac83825d87c518f0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git vxge: use strcpy for strings Use strncpy instead of memcpy when working on strings Signed-off-by: Jon Mason Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c index 44129c3ca42a..8a84152e320a 100644 --- a/drivers/net/vxge/vxge-main.c +++ b/drivers/net/vxge/vxge-main.c @@ -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);