diff options
Diffstat (limited to 'drivers/net/ethernet/dec/tulip/uli526x.c')
-rw-r--r-- | drivers/net/ethernet/dec/tulip/uli526x.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/dec/tulip/uli526x.c b/drivers/net/ethernet/dec/tulip/uli526x.c index 7a44a7a6adc8..48b0b6566eef 100644 --- a/drivers/net/ethernet/dec/tulip/uli526x.c +++ b/drivers/net/ethernet/dec/tulip/uli526x.c | |||
@@ -960,10 +960,11 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
960 | { | 960 | { |
961 | struct uli526x_board_info *np = netdev_priv(dev); | 961 | struct uli526x_board_info *np = netdev_priv(dev); |
962 | 962 | ||
963 | strcpy(info->driver, DRV_NAME); | 963 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
964 | strcpy(info->version, DRV_VERSION); | 964 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
965 | if (np->pdev) | 965 | if (np->pdev) |
966 | strcpy(info->bus_info, pci_name(np->pdev)); | 966 | strlcpy(info->bus_info, pci_name(np->pdev), |
967 | sizeof(info->bus_info)); | ||
967 | else | 968 | else |
968 | sprintf(info->bus_info, "EISA 0x%lx %d", | 969 | sprintf(info->bus_info, "EISA 0x%lx %d", |
969 | dev->base_addr, dev->irq); | 970 | dev->base_addr, dev->irq); |