diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-12-04 00:15:10 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-12-04 00:15:10 +0000 |
commit | ba8d8838d0b309bbe0deb35d65ad6d3218e3e395 (patch) | |
tree | ed4548ca00803395e85c4467eaff7152cf2f203a /usr.sbin/dhcp/dhclient/clparse.c | |
parent | 86aaf0741e273e904c0dbf088f076c35551f23f4 (diff) |
Careful with long, command-line provided interface names.
Diffstat (limited to 'usr.sbin/dhcp/dhclient/clparse.c')
-rw-r--r-- | usr.sbin/dhcp/dhclient/clparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcp/dhclient/clparse.c b/usr.sbin/dhcp/dhclient/clparse.c index c284da920e0..b3406ae01cf 100644 --- a/usr.sbin/dhcp/dhclient/clparse.c +++ b/usr.sbin/dhcp/dhclient/clparse.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: clparse.c,v 1.4 1999/02/11 22:49:59 deraadt Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; +"$Id: clparse.c,v 1.5 1999/12/04 00:15:08 angelos Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -494,7 +494,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; } |