config: Fix loading of pcap network device

This commit is contained in:
cold-brewed
2023-06-19 12:18:14 -04:00
parent ddd373456c
commit 00463a6991

View File

@@ -866,6 +866,8 @@ load_network(void)
ui_msgbox_header(MBX_ERROR, (wchar_t *) IDS_2096, (wchar_t *) IDS_2130);
}
strcpy(net_cards_conf[c].host_dev_name, "none");
} else {
strncpy(net_cards_conf[c].host_dev_name, p, sizeof(net_cards_conf[c].host_dev_name) - 1);
}
} else {
strncpy(net_cards_conf[c].host_dev_name, p, sizeof(net_cards_conf[c].host_dev_name) - 1);