diff options
Diffstat (limited to 'usr.sbin/dhcp/relay/dhcrelay.c')
-rw-r--r-- | usr.sbin/dhcp/relay/dhcrelay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/dhcp/relay/dhcrelay.c b/usr.sbin/dhcp/relay/dhcrelay.c index e549395de2e..c001710f870 100644 --- a/usr.sbin/dhcp/relay/dhcrelay.c +++ b/usr.sbin/dhcp/relay/dhcrelay.c @@ -122,7 +122,7 @@ int main (argc, argv, envp) usage (s); } memset (tmp, 0, sizeof *tmp); - strcpy (tmp -> name, argv [i]); + strlcpy (tmp -> name, argv [i], sizeof (tmp->name)); tmp -> next = interfaces; tmp -> flags = INTERFACE_REQUESTED; interfaces = tmp; |