mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-29 12:48:52 +06:00
Merge pull request #1225 from fredizzimo/fix_lcd_led_status_buffer_overrun
Fix buffer overrun in lcd_keyframes
This commit is contained in:
commit
0b31a63dd4
@ -125,8 +125,8 @@ static void get_led_state_string(char* output, visualizer_state_t* state) {
|
||||
pos += 5;
|
||||
}
|
||||
if (state->status.leds & (1u << USB_LED_KANA)) {
|
||||
memcpy(output + pos, "KANA ", 5);
|
||||
pos += 5;
|
||||
memcpy(output + pos, "KANA", 4);
|
||||
pos += 4;
|
||||
}
|
||||
output[pos] = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user