aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap
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/hostap
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/hostap')
-rw-r--r--drivers/net/wireless/hostap/hostap_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c
index 12de46407c71..46a8c291c08a 100644
--- a/drivers/net/wireless/hostap/hostap_ioctl.c
+++ b/drivers/net/wireless/hostap/hostap_ioctl.c
@@ -3871,8 +3871,8 @@ static void prism2_get_drvinfo(struct net_device *dev,
3871 iface = netdev_priv(dev); 3871 iface = netdev_priv(dev);
3872 local = iface->local; 3872 local = iface->local;
3873 3873
3874 strncpy(info->driver, "hostap", sizeof(info->driver) - 1); 3874 strlcpy(info->driver, "hostap", sizeof(info->driver));
3875 snprintf(info->fw_version, sizeof(info->fw_version) - 1, 3875 snprintf(info->fw_version, sizeof(info->fw_version),
3876 "%d.%d.%d", (local->sta_fw_ver >> 16) & 0xff, 3876 "%d.%d.%d", (local->sta_fw_ver >> 16) & 0xff,
3877 (local->sta_fw_ver >> 8) & 0xff, 3877 (local->sta_fw_ver >> 8) & 0xff,
3878 local->sta_fw_ver & 0xff); 3878 local->sta_fw_ver & 0xff);