aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r--drivers/net/macvlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 0ae45182f40d..1047e5875801 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -585,8 +585,8 @@ static int macvlan_fdb_del(struct ndmsg *ndm,
585static void macvlan_ethtool_get_drvinfo(struct net_device *dev, 585static void macvlan_ethtool_get_drvinfo(struct net_device *dev,
586 struct ethtool_drvinfo *drvinfo) 586 struct ethtool_drvinfo *drvinfo)
587{ 587{
588 snprintf(drvinfo->driver, 32, "macvlan"); 588 strlcpy(drvinfo->driver, "macvlan", sizeof(drvinfo->driver));
589 snprintf(drvinfo->version, 32, "0.1"); 589 strlcpy(drvinfo->version, "0.1", sizeof(drvinfo->version));
590} 590}
591 591
592static int macvlan_ethtool_get_settings(struct net_device *dev, 592static int macvlan_ethtool_get_settings(struct net_device *dev,