]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/um/drivers/net_kern.c
ethtool: fix drvinfo strings set in drivers
[mirror_ubuntu-artful-kernel.git] / arch / um / drivers / net_kern.c
index fd9090df64b631b3e5a77743028756c558fa5832..d8926c30362946475822ff21ca6a4d5dc9f20cbf 100644 (file)
@@ -274,8 +274,8 @@ static void uml_net_poll_controller(struct net_device *dev)
 static void uml_net_get_drvinfo(struct net_device *dev,
                                struct ethtool_drvinfo *info)
 {
-       strcpy(info->driver, DRIVER_NAME);
-       strcpy(info->version, "42");
+       strlcpy(info->driver, DRIVER_NAME, sizeof(info->driver));
+       strlcpy(info->version, "42", sizeof(info->version));
 }
 
 static const struct ethtool_ops uml_net_ethtool_ops = {