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