aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/e100.c
diff options
context:
space:
mode:
authorRick Jones <rick.jones2@hp.com>2011-11-09 04:58:07 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-14 00:35:46 -0500
commit23020ab35364f2c91133b099c2b1f7458e29aa96 (patch)
tree838cf53bb3b1670f591d404db40b5fe22b8c52fb /drivers/net/ethernet/intel/e100.c
parent952c5ca14eab113072716ae075c6fd184f011a89 (diff)
Sweep additional floors of strcpy in .get_drvinfo routines
Perform another round of floor sweeping, converting the .get_drvinfo routines of additional drivers from strcpy to strlcpy along with some conversion of sprintf to snprintf. Signed-off-by: Rick Jones <rick.jones2@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/e100.c')
-rw-r--r--drivers/net/ethernet/intel/e100.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c
index 5a2fdf7a00c8..46003278ffa0 100644
--- a/drivers/net/ethernet/intel/e100.c
+++ b/drivers/net/ethernet/intel/e100.c
@@ -2376,10 +2376,11 @@ static void e100_get_drvinfo(struct net_device *netdev,
2376 struct ethtool_drvinfo *info) 2376 struct ethtool_drvinfo *info)
2377{ 2377{
2378 struct nic *nic = netdev_priv(netdev); 2378 struct nic *nic = netdev_priv(netdev);
2379 strcpy(info->driver, DRV_NAME); 2379 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
2380 strcpy(info->version, DRV_VERSION); 2380 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
2381 strcpy(info->fw_version, "N/A"); 2381 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
2382 strcpy(info->bus_info, pci_name(nic->pdev)); 2382 strlcpy(info->bus_info, pci_name(nic->pdev),
2383 sizeof(info->bus_info));
2383} 2384}
2384 2385
2385#define E100_PHY_REGS 0x1C 2386#define E100_PHY_REGS 0x1C