diff --git a/contrib/isc-dhcp/client/clparse.c b/contrib/isc-dhcp/client/clparse.c index 8bedf1f44a8c..b08e0b60c4ab 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; }