FRONTPANEL: Avoid theoretical potential buffer overrun

This commit is contained in:
Mark Pizzolato 2021-01-30 22:46:17 -08:00
parent a5b7ebe44b
commit 11b5c1f1dd

View file

@ -589,7 +589,7 @@ return 0;
static int static int
_panel_establish_register_bits_collection (PANEL *panel) _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; int cmd_stat, bits_count = 0;
char *buf, *response = NULL; char *buf, *response = NULL;