mirror of
https://github.com/open-simh/simh.git
synced 2026-01-20 10:04:28 +00:00
ETHER: Fix potential compile warning about buffer overrun
This commit is contained in:
parent
a95a835b98
commit
5343dae137
@ -4228,7 +4228,7 @@ memset (ð_tst, 0, sizeof(eth_tst));
|
||||
eth_device_count = eth_devices(ETH_MAX_DEVICE, eth_list);
|
||||
eth_opened = 0;
|
||||
for (eth_num=0; eth_num<eth_device_count; eth_num++) {
|
||||
char eth_name[10];
|
||||
char eth_name[32];
|
||||
|
||||
if ((0 == memcmp (eth_list[eth_num].name, "nat:", 4)) ||
|
||||
(0 == memcmp (eth_list[eth_num].name, "tap:", 4)) ||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user