aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorRick Jones <rick.jones2@hp.com>2011-11-15 09:59:53 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-16 17:38:55 -0500
commit33a5ba144e3e7ffc1cd4a1d205e99c16078885bf (patch)
tree00bd6240afd42ef5a7daf422a8d4acd46118b873 /drivers/net/ethernet/smsc
parent588f033075d8c7efe28695402114eab3f9da47c4 (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/smsc')
-rw-r--r--drivers/net/ethernet/smsc/smc91c92_cs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/smsc/smc91c92_cs.c b/drivers/net/ethernet/smsc/smc91c92_cs.c
index cbfa9818713..ada927aba7a 100644
--- a/drivers/net/ethernet/smsc/smc91c92_cs.c
+++ b/drivers/net/ethernet/smsc/smc91c92_cs.c
@@ -1909,8 +1909,8 @@ static int check_if_running(struct net_device *dev)
1909 1909
1910static void smc_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1910static void smc_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
1911{ 1911{
1912 strcpy(info->driver, DRV_NAME); 1912 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
1913 strcpy(info->version, DRV_VERSION); 1913 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
1914} 1914}
1915 1915
1916static int smc_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) 1916static int smc_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)