diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2017-04-13 15:26:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-13 15:26:38 -0400 |
| commit | 0b31a63dd44b36ad84ef635177f22884d3f81859 (patch) | |
| tree | 6401bf6fe43e903890cdf4c5fb00115e29763fc9 /quantum/visualizer/lcd_keyframes.c | |
| parent | 41a46c7c8e4aa2470c245cbe09deb57c0720698e (diff) | |
| parent | 5c251b5575a5008c81b35cd31313591c4910722a (diff) | |
| download | qmk_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/visualizer/lcd_keyframes.c')
| -rw-r--r-- | quantum/visualizer/lcd_keyframes.c | 4 |
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) { | |||
| 125 | pos += 5; | 125 | pos += 5; |
| 126 | } | 126 | } |
| 127 | if (state->status.leds & (1u << USB_LED_KANA)) { | 127 | if (state->status.leds & (1u << USB_LED_KANA)) { |
| 128 | memcpy(output + pos, "KANA ", 5); | 128 | memcpy(output + pos, "KANA", 4); |
| 129 | pos += 5; | 129 | pos += 4; |
| 130 | } | 130 | } |
| 131 | output[pos] = 0; | 131 | output[pos] = 0; |
| 132 | } | 132 | } |
