mirror of
https://github.com/PDP-10/klh10.git
synced 2026-02-06 00:15:26 +00:00
Actually copy name.
This commit is contained in:
@@ -385,6 +385,8 @@ osn_ifcreate(char *ifnam)
|
||||
if (!ife && iftab_nifs < NETIFC_MAX) {
|
||||
ife = &iftab[iftab_nifs];
|
||||
iftab_nifs++;
|
||||
strncpy(ife->ife_name, name, IFNAMSIZ);
|
||||
ife->ife_name[IFNAMSIZ] = '\0';
|
||||
}
|
||||
|
||||
return ife;
|
||||
|
||||
Reference in New Issue
Block a user