diff options
Diffstat (limited to 'drivers/net/b44.c')
-rw-r--r-- | drivers/net/b44.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 36d4d377ec2f..1f7f015442df 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -1756,15 +1756,15 @@ static void b44_get_drvinfo (struct net_device *dev, struct ethtool_drvinfo *inf | |||
1756 | struct b44 *bp = netdev_priv(dev); | 1756 | struct b44 *bp = netdev_priv(dev); |
1757 | struct ssb_bus *bus = bp->sdev->bus; | 1757 | struct ssb_bus *bus = bp->sdev->bus; |
1758 | 1758 | ||
1759 | strncpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver)); | 1759 | strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver)); |
1760 | strncpy(info->version, DRV_MODULE_VERSION, sizeof(info->driver)); | 1760 | strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version)); |
1761 | switch (bus->bustype) { | 1761 | switch (bus->bustype) { |
1762 | case SSB_BUSTYPE_PCI: | 1762 | case SSB_BUSTYPE_PCI: |
1763 | strncpy(info->bus_info, pci_name(bus->host_pci), sizeof(info->bus_info)); | 1763 | strlcpy(info->bus_info, pci_name(bus->host_pci), sizeof(info->bus_info)); |
1764 | break; | 1764 | break; |
1765 | case SSB_BUSTYPE_PCMCIA: | 1765 | case SSB_BUSTYPE_PCMCIA: |
1766 | case SSB_BUSTYPE_SSB: | 1766 | case SSB_BUSTYPE_SSB: |
1767 | strncpy(info->bus_info, "SSB", sizeof(info->bus_info)); | 1767 | strlcpy(info->bus_info, "SSB", sizeof(info->bus_info)); |
1768 | break; | 1768 | break; |
1769 | } | 1769 | } |
1770 | } | 1770 | } |