projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bacdbb
)
vxge: use strcpy for strings
author
Jon Mason
<jon.mason@exar.com>
Mon, 29 Nov 2010 18:02:46 +0000
(18:02 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 1 Dec 2010 21:02:08 +0000
(13:02 -0800)
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>
drivers/net/vxge/vxge-main.c
patch
|
blob
|
history
diff --git
a/drivers/net/vxge/vxge-main.c
b/drivers/net/vxge/vxge-main.c
index 44129c3ca42a8d016417f4223c066fb4e7df0680..8a84152e320a19f8635a99767b2f95c8ddffbe02 100644
(file)
--- 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__);
-
mem
cpy(buf, dev->name, IFNAMSIZ);
+
strn
cpy(buf, dev->name, IFNAMSIZ);
/* in 2.6 will call stop() if device is up */
unregister_netdev(dev);