ethtool: fix drvinfo strings set in drivers
[deliverable/linux.git] / drivers / net / ethernet / toshiba / ps3_gelic_net.c
index e321d0b6fc882a4969a1a45ef2ce4b7a5de29864..445c0595c997e4e75316bcaca11fd7c1b3dbd9ce 100644 (file)
@@ -1226,8 +1226,8 @@ int gelic_net_open(struct net_device *netdev)
 void gelic_net_get_drvinfo(struct net_device *netdev,
                           struct ethtool_drvinfo *info)
 {
-       strncpy(info->driver, DRV_NAME, sizeof(info->driver) - 1);
-       strncpy(info->version, DRV_VERSION, sizeof(info->version) - 1);
+       strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
+       strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 }
 
 static int gelic_ether_get_settings(struct net_device *netdev,
This page took 0.025953 seconds and 5 git commands to generate.