ethtool: fix drvinfo strings set in drivers
[deliverable/linux.git] / drivers / net / ethernet / nuvoton / w90p910_ether.c
index cbd6a529d0c0d94d130dfb16f8703db6c1139fb4..162da8975b059a3ef42ec9e2469660e02d3b01de 100644 (file)
@@ -878,8 +878,8 @@ static int w90p910_ether_ioctl(struct net_device *dev,
 static void w90p910_get_drvinfo(struct net_device *dev,
                                        struct ethtool_drvinfo *info)
 {
-       strcpy(info->driver, DRV_MODULE_NAME);
-       strcpy(info->version, DRV_MODULE_VERSION);
+       strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
+       strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
 }
 
 static int w90p910_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
This page took 0.02412 seconds and 5 git commands to generate.