Careful with long, command-line provided interface names.
Obtained from: OpenBSD (rev 1.5)
This commit is contained in:
parent
1c98084517
commit
e14c244fb4
@ -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