diff options
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r-- | drivers/net/veth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 726c790ec74c..d32a75fb6d21 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c | |||
@@ -66,9 +66,9 @@ static int veth_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
66 | 66 | ||
67 | static void veth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | 67 | static void veth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) |
68 | { | 68 | { |
69 | strcpy(info->driver, DRV_NAME); | 69 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
70 | strcpy(info->version, DRV_VERSION); | 70 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
71 | strcpy(info->fw_version, "N/A"); | 71 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); |
72 | } | 72 | } |
73 | 73 | ||
74 | static void veth_get_strings(struct net_device *dev, u32 stringset, u8 *buf) | 74 | static void veth_get_strings(struct net_device *dev, u32 stringset, u8 *buf) |