|
@@ -1551,7 +1551,8 @@ static int build_iface_list(void)
|
|
|
}
|
|
|
|
|
|
if(strlen(ifaces[index].name)==0 && strlen(name)>0) {
|
|
|
- strncpy(ifaces[index].name, name, MAX_IF_LEN-1);
|
|
|
+ memcpy(ifaces[index].name, name, MAX_IF_LEN-1);
|
|
|
+ ifaces[index].name[MAX_IF_LEN-1] = '\0';
|
|
|
}
|
|
|
|
|
|
ifaces[index].index = index;
|