mirror of
https://github.com/simh/simh.git
synced 2026-01-27 04:22:24 +00:00
ETHER: Fix potential compile warning about buffer overrun
This commit is contained in:
@@ -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)) ||
|
||||
|
||||
Reference in New Issue
Block a user