mirror of
https://github.com/simh/simh.git
synced 2026-03-09 20:18:46 +00:00
FRONTPANEL: Avoid theoretical potential buffer overrun
This commit is contained in:
@@ -589,7 +589,7 @@ return 0;
|
||||
static int
|
||||
_panel_establish_register_bits_collection (PANEL *panel)
|
||||
{
|
||||
size_t i, buf_data, buf_needed = 0, reg_count = 0, bit_reg_count = 0;
|
||||
size_t i, buf_data, buf_needed = 1, reg_count = 0, bit_reg_count = 0;
|
||||
int cmd_stat, bits_count = 0;
|
||||
char *buf, *response = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user