diff options
Diffstat (limited to 'drivers/net/wireless/libertas/ethtool.c')
-rw-r--r-- | drivers/net/wireless/libertas/ethtool.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/ethtool.c b/drivers/net/wireless/libertas/ethtool.c index 885ddc1c4fed..f955b2d66ed6 100644 --- a/drivers/net/wireless/libertas/ethtool.c +++ b/drivers/net/wireless/libertas/ethtool.c | |||
@@ -13,13 +13,14 @@ static void lbs_ethtool_get_drvinfo(struct net_device *dev, | |||
13 | { | 13 | { |
14 | struct lbs_private *priv = dev->ml_priv; | 14 | struct lbs_private *priv = dev->ml_priv; |
15 | 15 | ||
16 | snprintf(info->fw_version, 32, "%u.%u.%u.p%u", | 16 | snprintf(info->fw_version, sizeof(info->fw_version), |
17 | "%u.%u.%u.p%u", | ||
17 | priv->fwrelease >> 24 & 0xff, | 18 | priv->fwrelease >> 24 & 0xff, |
18 | priv->fwrelease >> 16 & 0xff, | 19 | priv->fwrelease >> 16 & 0xff, |
19 | priv->fwrelease >> 8 & 0xff, | 20 | priv->fwrelease >> 8 & 0xff, |
20 | priv->fwrelease & 0xff); | 21 | priv->fwrelease & 0xff); |
21 | strcpy(info->driver, "libertas"); | 22 | strlcpy(info->driver, "libertas", sizeof(info->driver)); |
22 | strcpy(info->version, lbs_driver_version); | 23 | strlcpy(info->version, lbs_driver_version, sizeof(info->version)); |
23 | } | 24 | } |
24 | 25 | ||
25 | /* | 26 | /* |