aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2x00/ipw2200.c
diff options
context:
space:
mode:
authorRick Jones <rick.jones2@hp.com>2011-11-15 13:40:49 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-17 15:44:50 -0500
commit1f80c230a7d291a10045a3cdc2efd18a4185674d (patch)
treedcf356277b35b0584196675f084ca330a9392123 /drivers/net/wireless/ipw2x00/ipw2200.c
parent6048d76384ed531123588277fe1fd95b24067cbc (diff)
wireless: use strlcpy routine in .get_drvinfo
Convert various seemingly still compiled wireless drivers' .get_drvinfo routines to use the preferred strlcpy() routine. Signed-off-by: Rick Jones <rick.jones2@hp.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2x00/ipw2200.c')
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2200.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c
index 99575884ff5..018a8deb88a 100644
--- a/drivers/net/wireless/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/ipw2x00/ipw2200.c
@@ -10548,8 +10548,8 @@ static void ipw_ethtool_get_drvinfo(struct net_device *dev,
10548 char date[32]; 10548 char date[32];
10549 u32 len; 10549 u32 len;
10550 10550
10551 strcpy(info->driver, DRV_NAME); 10551 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
10552 strcpy(info->version, DRV_VERSION); 10552 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
10553 10553
10554 len = sizeof(vers); 10554 len = sizeof(vers);
10555 ipw_get_ordinal(p, IPW_ORD_STAT_FW_VERSION, vers, &len); 10555 ipw_get_ordinal(p, IPW_ORD_STAT_FW_VERSION, vers, &len);
@@ -10558,7 +10558,8 @@ static void ipw_ethtool_get_drvinfo(struct net_device *dev,
10558 10558
10559 snprintf(info->fw_version, sizeof(info->fw_version), "%s (%s)", 10559 snprintf(info->fw_version, sizeof(info->fw_version), "%s (%s)",
10560 vers, date); 10560 vers, date);
10561 strcpy(info->bus_info, pci_name(p->pci_dev)); 10561 strlcpy(info->bus_info, pci_name(p->pci_dev),
10562 sizeof(info->bus_info));
10562 info->eedump_len = IPW_EEPROM_IMAGE_SIZE; 10563 info->eedump_len = IPW_EEPROM_IMAGE_SIZE;
10563} 10564}
10564 10565