summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-07-20 08:57:29 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-07-20 08:57:29 +0000
commit4bb78bf5109b1cea7c0324ef9de53219f643f247 (patch)
treec853bd6ec7501fe051f19dc5ac8d55b09dc5a2bf
parent3074027e68da046bbc03637986327687ddb1ddc7 (diff)
Notes
-rw-r--r--contrib/isc-dhcp/client/dhclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/isc-dhcp/client/dhclient.c b/contrib/isc-dhcp/client/dhclient.c
index e31df7041340..f47e47a5898d 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;