Message ID | 20220401074640.3956695-2-i.kamaletdinov@omp.ru |
---|---|
State | New |
Headers | show |
Series | Fix bugs found by SVACE static analisys tool | expand |
diff --git a/monitor/packet.c b/monitor/packet.c index b7431b57d..c61d6bd4b 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -2833,7 +2833,7 @@ static void print_le_states(const uint8_t *states_array) if (!(states & val)) continue; - for (n = 0; n < 16; n++) { + for (n = 0; n < ARRAY_SIZE(le_states_desc_table); n++) { if (le_states_comb_table[i].states & (1 << n)) str[num++] = le_states_desc_table[n].str; }