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 | |
parent | 9f2bb11412d7e6e6f6451ebb7e6481d1cb668ea3 (diff) | |
download | firmware-42a72c633b460beb900a94c7747737c71078da5b.tar.gz firmware-42a72c633b460beb900a94c7747737c71078da5b.tar.bz2 firmware-42a72c633b460beb900a94c7747737c71078da5b.zip |
Fixed sprintf overflow
Diffstat (limited to 'quantum')
-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) { for (int c = 0; c < MATRIX_COLS; c++) { uint16_t keycode = pgm_read_word(&keymaps[layer][r][c]); char keycode_s[8]; - sprintf(keycode_s, "0x%04x, ", keycode); + sprintf(keycode_s, "0x%04x,", keycode); send_string(keycode_s); } send_string(newline); |