mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
p9813.cxx: Handle buffer overrun
Changed for loop iterator from <= to <. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
65969462d1
commit
9549529faf
@ -100,7 +100,7 @@ P9813::pushState(void)
|
||||
sendByte(0x00);
|
||||
sendByte(0x00);
|
||||
|
||||
for (uint16_t i = 0; i <= m_leds.size(); i++) {
|
||||
for (uint16_t i = 0; i < m_leds.size(); i++) {
|
||||
uint8_t red = m_leds[i].red;
|
||||
uint8_t green = m_leds[i].green;
|
||||
uint8_t blue = m_leds[i].blue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user