1
0
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:
Olaf Seibert
2015-12-30 17:28:49 +01:00
parent 9aee94ee3d
commit aa498e3e1f

View File

@@ -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;