aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/rdc/r6040.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/rdc/r6040.c')
-rw-r--r--drivers/net/ethernet/rdc/r6040.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c
index 63c13125db6c..ba0be4b943dd 100644
--- a/drivers/net/ethernet/rdc/r6040.c
+++ b/drivers/net/ethernet/rdc/r6040.c
@@ -957,9 +957,9 @@ static void netdev_get_drvinfo(struct net_device *dev,
957{ 957{
958 struct r6040_private *rp = netdev_priv(dev); 958 struct r6040_private *rp = netdev_priv(dev);
959 959
960 strcpy(info->driver, DRV_NAME); 960 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
961 strcpy(info->version, DRV_VERSION); 961 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
962 strcpy(info->bus_info, pci_name(rp->pdev)); 962 strlcpy(info->bus_info, pci_name(rp->pdev), sizeof(info->bus_info));
963} 963}
964 964
965static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) 965static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)