ethtool: fix drvinfo strings set in drivers
[deliverable/linux.git] / drivers / net / ethernet / sun / sunbmac.c
index be82f6d13c5199228053ca37a69f847821542f35..5fafca0653051d3960fc5240341ad0271ffeb832 100644 (file)
@@ -1042,8 +1042,8 @@ static void bigmac_set_multicast(struct net_device *dev)
 /* Ethtool support... */
 static void bigmac_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
 {
-       strcpy(info->driver, "sunbmac");
-       strcpy(info->version, "2.0");
+       strlcpy(info->driver, "sunbmac", sizeof(info->driver));
+       strlcpy(info->version, "2.0", sizeof(info->version));
 }
 
 static u32 bigmac_get_link(struct net_device *dev)
This page took 0.024694 seconds and 5 git commands to generate.