Sweep additional floors of strcpy in .get_drvinfo routines
[jme.git] / jme.c
diff --git a/jme.c b/jme.c
index 7a0c746f2749be4b5ddadfa0b7b7a8e37fc445da..4e51946acec4e2c3d876a9f939127b3ed7b7b302 100644 (file)
--- a/jme.c
+++ b/jme.c
@@ -2292,9 +2292,9 @@ jme_get_drvinfo(struct net_device *netdev,
 {
        struct jme_adapter *jme = netdev_priv(netdev);
 
-       strcpy(info->driver, DRV_NAME);
-       strcpy(info->version, DRV_VERSION);
-       strcpy(info->bus_info, pci_name(jme->pdev));
+       strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
+       strlcpy(info->version, DRV_VERSION, sizeof(info->version));
+       strlcpy(info->bus_info, pci_name(jme->pdev), sizeof(info->bus_info));
 }
 
 static int