aboutsummaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-04-13 21:40:06 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-04-13 21:40:06 +0300
commit5c251b5575a5008c81b35cd31313591c4910722a (patch)
tree6401bf6fe43e903890cdf4c5fb00115e29763fc9 /quantum
parent41a46c7c8e4aa2470c245cbe09deb57c0720698e (diff)
downloadfirmware-5c251b5575a5008c81b35cd31313591c4910722a.tar.gz
firmware-5c251b5575a5008c81b35cd31313591c4910722a.tar.bz2
firmware-5c251b5575a5008c81b35cd31313591c4910722a.zip
Fix buffer overrun in lcd_keyframes
This would often cause the keyboard to crash when restarting the computer.
Diffstat (limited to 'quantum')
-rw-r--r--quantum/visualizer/lcd_keyframes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/visualizer/lcd_keyframes.c b/quantum/visualizer/lcd_keyframes.c
index df11861dd..82e4184d2 100644
--- a/quantum/visualizer/lcd_keyframes.c
+++ b/quantum/visualizer/lcd_keyframes.c
@@ -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;
}