2010-01-20 17:07:47 +00:00
|
|
|
diff -up dhcp-4.1.1/server/dhcpd.c.ifnamsiz dhcp-4.1.1/server/dhcpd.c
|
|
|
|
--- dhcp-4.1.1/server/dhcpd.c.ifnamsiz 2010-01-20 17:26:44.000000000 +0100
|
|
|
|
+++ dhcp-4.1.1/server/dhcpd.c 2010-01-20 17:26:44.000000000 +0100
|
|
|
|
@@ -402,7 +402,7 @@ main(int argc, char **argv) {
|
2009-04-21 02:39:32 +00:00
|
|
|
log_fatal ("Insufficient memory to %s %s: %s",
|
|
|
|
"record interface", argv [i],
|
|
|
|
isc_result_totext (result));
|
|
|
|
- strcpy (tmp -> name, argv [i]);
|
|
|
|
+ strncpy (tmp -> name, argv [i], sizeof (tmp -> name));
|
|
|
|
if (interfaces) {
|
|
|
|
interface_reference (&tmp -> next,
|
|
|
|
interfaces, MDL);
|