diff options
author | obrien <obrien@FreeBSD.org> | 2000-07-20 09:56:18 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-07-20 09:56:18 +0000 |
commit | 37aa29fabf5278e315763ef6270b092071b0580d (patch) | |
tree | 73932de7c3d7620a58e6133237b25d3249d80c1e /contrib | |
parent | 847128d2b340184f3f67d3056fcaf433fc3352f9 (diff) | |
download | FreeBSD-src-37aa29fabf5278e315763ef6270b092071b0580d.zip FreeBSD-src-37aa29fabf5278e315763ef6270b092071b0580d.tar.gz |
Careful with long, command-line provided interface names.
Obtained from: OpenBSD (rev 1.5)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/isc-dhcp/client/clparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/isc-dhcp/client/clparse.c b/contrib/isc-dhcp/client/clparse.c index 8bedf1f..b08e0b6 100644 --- a/contrib/isc-dhcp/client/clparse.c +++ b/contrib/isc-dhcp/client/clparse.c @@ -486,7 +486,7 @@ struct interface_info *interface_or_dummy (name) error ("Insufficient memory to record interface %s", name); memset (ip, 0, sizeof *ip); - strcpy (ip -> name, name); + strlcpy (ip -> name, name, IFNAMSIZ); ip -> next = dummy_interfaces; dummy_interfaces = ip; } |