diff options
author | M1K3L08 <mikepress88@gmail.com> | 2018-05-16 21:00:04 +0100 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-05-16 21:05:43 -0400 |
commit | 42a72c633b460beb900a94c7747737c71078da5b (patch) | |
tree | a59b2bd68c1c185de5e5e99d456ec011ce4e77b9 /quantum/process_keycode/process_terminal.c | |
parent | 9f2bb11412d7e6e6f6451ebb7e6481d1cb668ea3 (diff) | |
download | qmk_firmware-42a72c633b460beb900a94c7747737c71078da5b.tar.gz qmk_firmware-42a72c633b460beb900a94c7747737c71078da5b.zip |
Fixed sprintf overflow
Diffstat (limited to 'quantum/process_keycode/process_terminal.c')
-rw-r--r-- | quantum/process_keycode/process_terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_terminal.c b/quantum/process_keycode/process_terminal.c index bc365dddf..6998639f2 100644 --- a/quantum/process_keycode/process_terminal.c +++ b/quantum/process_keycode/process_terminal.c | |||
@@ -158,7 +158,7 @@ void terminal_keymap(void) { | |||
158 | for (int c = 0; c < MATRIX_COLS; c++) { | 158 | for (int c = 0; c < MATRIX_COLS; c++) { |
159 | uint16_t keycode = pgm_read_word(&keymaps[layer][r][c]); | 159 | uint16_t keycode = pgm_read_word(&keymaps[layer][r][c]); |
160 | char keycode_s[8]; | 160 | char keycode_s[8]; |
161 | sprintf(keycode_s, "0x%04x, ", keycode); | 161 | sprintf(keycode_s, "0x%04x,", keycode); |
162 | send_string(keycode_s); | 162 | send_string(keycode_s); |
163 | } | 163 | } |
164 | send_string(newline); | 164 | send_string(newline); |