diff options
author | Rick Jones <rick.jones2@hp.com> | 2011-11-15 09:59:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-16 17:38:55 -0500 |
commit | 33a5ba144e3e7ffc1cd4a1d205e99c16078885bf (patch) | |
tree | 00bd6240afd42ef5a7daf422a8d4acd46118b873 /drivers/net/ethernet/amd | |
parent | 588f033075d8c7efe28695402114eab3f9da47c4 (diff) |
net: sweep-up some straglers in strlcpy conversion of .get_drvinfo routines
Convert some remaining straglers' .get_drvinfo routines to use strlcpy
rather than strcpy/strncpy.
Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd')
-rw-r--r-- | drivers/net/ethernet/amd/nmclan_cs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/amd/nmclan_cs.c b/drivers/net/ethernet/amd/nmclan_cs.c index 3accd5d21b08..3d7be5aa49eb 100644 --- a/drivers/net/ethernet/amd/nmclan_cs.c +++ b/drivers/net/ethernet/amd/nmclan_cs.c | |||
@@ -822,9 +822,10 @@ static int mace_close(struct net_device *dev) | |||
822 | static void netdev_get_drvinfo(struct net_device *dev, | 822 | static void netdev_get_drvinfo(struct net_device *dev, |
823 | struct ethtool_drvinfo *info) | 823 | struct ethtool_drvinfo *info) |
824 | { | 824 | { |
825 | strcpy(info->driver, DRV_NAME); | 825 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
826 | strcpy(info->version, DRV_VERSION); | 826 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
827 | sprintf(info->bus_info, "PCMCIA 0x%lx", dev->base_addr); | 827 | snprintf(info->bus_info, sizeof(info->bus_info), |
828 | "PCMCIA 0x%lx", dev->base_addr); | ||
828 | } | 829 | } |
829 | 830 | ||
830 | static const struct ethtool_ops netdev_ethtool_ops = { | 831 | static const struct ethtool_ops netdev_ethtool_ops = { |