diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-21 03:30:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-21 03:30:22 +0000 |
commit | 392745f91df219566154c00a216cb986dcb44574 (patch) | |
tree | 60ac88a449b21983d893e1e6a937d36e1319a616 /usr.sbin/dhcp/relay/dhcrelay.c | |
parent | 22bb7b9dc24dd3aa601fe21b0fbedda78cd80e7c (diff) |
more strlcpy
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; |