summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
diff options
context:
space:
mode:
authorRick Jones <rick.jones2@hp.com>2011-11-15 18:59:53 +0400
committerDavid S. Miller <davem@davemloft.net>2011-11-17 02:38:55 +0400
commit33a5ba144e3e7ffc1cd4a1d205e99c16078885bf (patch)
tree00bd6240afd42ef5a7daf422a8d4acd46118b873 /drivers/net/ethernet/fujitsu/fmvj18x_cs.c
parent588f033075d8c7efe28695402114eab3f9da47c4 (diff)
downloadlinux-33a5ba144e3e7ffc1cd4a1d205e99c16078885bf.tar.xz
net: sweep-up some straglers in strlcpy conversion of .get_drvinfo routines
Convert some remaining straglers' .get_drvinfo routines to use strlcpy rather than strcpy/strncpy. Signed-off-by: Rick Jones <rick.jones2@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/fujitsu/fmvj18x_cs.c')
-rw-r--r--drivers/net/ethernet/fujitsu/fmvj18x_cs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
index 15416752c13e..ee84b472cee6 100644
--- a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
+++ b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
@@ -1058,9 +1058,10 @@ static void fjn_rx(struct net_device *dev)
static void netdev_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info)
{
- strcpy(info->driver, DRV_NAME);
- strcpy(info->version, DRV_VERSION);
- sprintf(info->bus_info, "PCMCIA 0x%lx", dev->base_addr);
+ strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
+ strlcpy(info->version, DRV_VERSION, sizeof(info->version));
+ snprintf(info->bus_info, sizeof(info->bus_info),
+ "PCMCIA 0x%lx", dev->base_addr);
}
static const struct ethtool_ops netdev_ethtool_ops = {