1
0
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:
Mark Pizzolato
2025-09-06 12:40:39 -10:00
parent 46c6398912
commit 7619e27394

View File

@@ -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;