diff options
author | obrien <obrien@FreeBSD.org> | 2000-07-20 08:57:29 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-07-20 08:57:29 +0000 |
commit | 93bac0087e1506b7c834bf6c6d364194717b2ecd (patch) | |
tree | 9b52adb59c35fa3cd6ecaf4b6ad9736e3e123e46 /contrib | |
parent | e71f7e54113e61386ed9b2bd7c11f0c06c413259 (diff) | |
download | FreeBSD-src-93bac0087e1506b7c834bf6c6d364194717b2ecd.zip FreeBSD-src-93bac0087e1506b7c834bf6c6d364194717b2ecd.tar.gz |
Careful with long, command-line provided interface names.
Obtained from: OpenBSD (rev 1.7)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/isc-dhcp/client/dhclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/isc-dhcp/client/dhclient.c b/contrib/isc-dhcp/client/dhclient.c index e31df70..f47e47a 100644 --- a/contrib/isc-dhcp/client/dhclient.c +++ b/contrib/isc-dhcp/client/dhclient.c @@ -168,7 +168,7 @@ int main (argc, argv, envp) error ("Insufficient memory to %s %s", "record interface", argv [i]); memset (tmp, 0, sizeof *tmp); - strcpy (tmp -> name, argv [i]); + strlcpy (tmp -> name, argv [i], IFNAMSIZ); tmp -> next = interfaces; tmp -> flags = INTERFACE_REQUESTED; interfaces_requested = 1; |