Merge from vendor branch BIND:
[dragonfly.git] / sbin / dhclient / client / clparse.c.patch
1 $DragonFly: src/sbin/dhclient/client/Attic/clparse.c.patch,v 1.1 2005/01/04 19:58:54 joerg Exp $
2 --- clparse.c.orig      2004-06-10 19:59:11.000000000 +0200
3 +++ clparse.c   2004-06-24 16:35:45.000000000 +0200
4 @@ -776,7 +776,7 @@
5                 if (status != ISC_R_SUCCESS)
6                         log_fatal ("Can't record interface %s: %s",
7                                    name, isc_result_totext (status));
8 -               strcpy (ip -> name, name);
9 +               strlcpy (ip -> name, name, IFNAMSIZ);
10                 if (dummy_interfaces) {
11                         interface_reference (&ip -> next,
12                                              dummy_interfaces, MDL);