summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-04-13 15:26:38 -0400
committerGitHub <noreply@github.com>2017-04-13 15:26:38 -0400
commit0b31a63dd44b36ad84ef635177f22884d3f81859 (patch)
tree6401bf6fe43e903890cdf4c5fb00115e29763fc9 /quantum
parent41a46c7c8e4aa2470c245cbe09deb57c0720698e (diff)
parent5c251b5575a5008c81b35cd31313591c4910722a (diff)
downloadqmk_firmware-0b31a63dd44b36ad84ef635177f22884d3f81859.tar.gz
qmk_firmware-0b31a63dd44b36ad84ef635177f22884d3f81859.zip
Merge pull request #1225 from fredizzimo/fix_lcd_led_status_buffer_overrun
Fix buffer overrun in lcd_keyframes
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 df11861ddc..82e4184d2c 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;
}