diff options
Diffstat (limited to 'drivers/net/usb/catc.c')
-rw-r--r-- | drivers/net/usb/catc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index 18d9579123ea..8d5cac2d8e33 100644 --- a/drivers/net/usb/catc.c +++ b/drivers/net/usb/catc.c | |||
@@ -685,9 +685,9 @@ static void catc_get_drvinfo(struct net_device *dev, | |||
685 | struct ethtool_drvinfo *info) | 685 | struct ethtool_drvinfo *info) |
686 | { | 686 | { |
687 | struct catc *catc = netdev_priv(dev); | 687 | struct catc *catc = netdev_priv(dev); |
688 | strncpy(info->driver, driver_name, ETHTOOL_BUSINFO_LEN); | 688 | strlcpy(info->driver, driver_name, sizeof(info->driver)); |
689 | strncpy(info->version, DRIVER_VERSION, ETHTOOL_BUSINFO_LEN); | 689 | strlcpy(info->version, DRIVER_VERSION, sizeof(info->version)); |
690 | usb_make_path (catc->usbdev, info->bus_info, sizeof info->bus_info); | 690 | usb_make_path(catc->usbdev, info->bus_info, sizeof(info->bus_info)); |
691 | } | 691 | } |
692 | 692 | ||
693 | static int catc_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) | 693 | static int catc_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) |