mirror of
https://github.com/simh/simh.git
synced 2026-01-30 13:27:50 +00:00
ETHER: Avoid theoretical buffer overrun defining SIM_ETHER_CAPABILITIES
This commit is contained in:
@@ -1393,7 +1393,7 @@ static t_bool eth_vde_network_available = FALSE;
|
||||
const char *eth_capabilities(void)
|
||||
{
|
||||
static char capabilities[CBUFSIZE] = "";
|
||||
char cap_env[CBUFSIZE];
|
||||
char cap_env[2*CBUFSIZE];
|
||||
|
||||
if (capabilities[0] != '\0')
|
||||
return capabilities;
|
||||
|
||||
Reference in New Issue
Block a user