Careful with long, command-line provided interface names.
Obtained from: OpenBSD (rev 1.5)
This commit is contained in:
parent
11c898d281
commit
e6d7feef80
@ -486,7 +486,7 @@ struct interface_info *interface_or_dummy (name)
|
||||
error ("Insufficient memory to record interface %s",
|
||||
name);
|
||||
memset (ip, 0, sizeof *ip);
|
||||
strcpy (ip -> name, name);
|
||||
strlcpy (ip -> name, name, IFNAMSIZ);
|
||||
ip -> next = dummy_interfaces;
|
||||
dummy_interfaces = ip;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user