ethtool: fix drvinfo strings set in drivers
[deliverable/linux.git] / drivers / net / ethernet / lantiq_etop.c
index cd3d2c09cdd0b10f797e822ba689da7327690461..8ead46adc21e6f07913c996405bbc36a5927695c 100644 (file)
@@ -302,9 +302,9 @@ ltq_etop_hw_init(struct net_device *dev)
 static void
 ltq_etop_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
 {
-       strcpy(info->driver, "Lantiq ETOP");
-       strcpy(info->bus_info, "internal");
-       strcpy(info->version, DRV_VERSION);
+       strlcpy(info->driver, "Lantiq ETOP", sizeof(info->driver));
+       strlcpy(info->bus_info, "internal", sizeof(info->bus_info));
+       strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 }
 
 static int
This page took 0.082651 seconds and 5 git commands to generate.