aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/dnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/dnet.c')
-rw-r--r--drivers/net/ethernet/dnet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c
index c1063d1540c2..d94b9686b80c 100644
--- a/drivers/net/ethernet/dnet.c
+++ b/drivers/net/ethernet/dnet.c
@@ -804,9 +804,9 @@ static int dnet_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
804static void dnet_get_drvinfo(struct net_device *dev, 804static void dnet_get_drvinfo(struct net_device *dev,
805 struct ethtool_drvinfo *info) 805 struct ethtool_drvinfo *info)
806{ 806{
807 strcpy(info->driver, DRV_NAME); 807 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
808 strcpy(info->version, DRV_VERSION); 808 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
809 strcpy(info->bus_info, "0"); 809 strlcpy(info->bus_info, "0", sizeof(info->bus_info));
810} 810}
811 811
812static const struct ethtool_ops dnet_ethtool_ops = { 812static const struct ethtool_ops dnet_ethtool_ops = {