aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/3com/3c59x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/3com/3c59x.c')
-rw-r--r--drivers/net/ethernet/3com/3c59x.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/ethernet/3com/3c59x.c b/drivers/net/ethernet/3com/3c59x.c
index b42c06baba89..8153a3e0a1a4 100644
--- a/drivers/net/ethernet/3com/3c59x.c
+++ b/drivers/net/ethernet/3com/3c59x.c
@@ -2929,15 +2929,17 @@ static void vortex_get_drvinfo(struct net_device *dev,
2929{ 2929{
2930 struct vortex_private *vp = netdev_priv(dev); 2930 struct vortex_private *vp = netdev_priv(dev);
2931 2931
2932 strcpy(info->driver, DRV_NAME); 2932 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
2933 if (VORTEX_PCI(vp)) { 2933 if (VORTEX_PCI(vp)) {
2934 strcpy(info->bus_info, pci_name(VORTEX_PCI(vp))); 2934 strlcpy(info->bus_info, pci_name(VORTEX_PCI(vp)),
2935 sizeof(info->bus_info));
2935 } else { 2936 } else {
2936 if (VORTEX_EISA(vp)) 2937 if (VORTEX_EISA(vp))
2937 strcpy(info->bus_info, dev_name(vp->gendev)); 2938 strlcpy(info->bus_info, dev_name(vp->gendev),
2939 sizeof(info->bus_info));
2938 else 2940 else
2939 sprintf(info->bus_info, "EISA 0x%lx %d", 2941 snprintf(info->bus_info, sizeof(info->bus_info),
2940 dev->base_addr, dev->irq); 2942 "EISA 0x%lx %d", dev->base_addr, dev->irq);
2941 } 2943 }
2942} 2944}
2943 2945