Skip to content

Commit

Permalink
Fix buffer overrun in lcd_keyframes
Browse files Browse the repository at this point in the history
This would often cause the keyboard to crash when restarting the
computer.
  • Loading branch information
fredizzimo committed Apr 13, 2017
1 parent 41a46c7 commit 5c251b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quantum/visualizer/lcd_keyframes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5c251b5

Please sign in to comment.