diff options
author | Jon Mason <jon.mason@exar.com> | 2010-11-29 13:02:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-01 16:02:08 -0500 |
commit | ead5d238146981f922e3848fac83825d87c518f0 (patch) | |
tree | 8ab431ca6d04aff50caa33c662e3685360a2c8a4 | |
parent | 1bacdbb341e8c92c58651f06727318c3d0c1c30e (diff) |
vxge: use strcpy for strings
Use strncpy instead of memcpy when working on strings
Signed-off-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/vxge/vxge-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
3451 | vxge_debug_entryexit(vdev->level_trace, "%s: %s:%d", vdev->ndev->name, | 3451 | vxge_debug_entryexit(vdev->level_trace, "%s: %s:%d", vdev->ndev->name, |
3452 | __func__, __LINE__); | 3452 | __func__, __LINE__); |
3453 | 3453 | ||
3454 | memcpy(buf, dev->name, IFNAMSIZ); | 3454 | strncpy(buf, dev->name, IFNAMSIZ); |
3455 | 3455 | ||
3456 | /* in 2.6 will call stop() if device is up */ | 3456 | /* in 2.6 will call stop() if device is up */ |
3457 | unregister_netdev(dev); | 3457 | unregister_netdev(dev); |