summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode
diff options
context:
space:
mode:
authorM1K3L08 <mikepress88@gmail.com>2018-05-16 22:00:04 +0200
committerJack Humbert <jack.humb@gmail.com>2018-05-17 03:05:43 +0200
commit42a72c633b460beb900a94c7747737c71078da5b (patch)
treea59b2bd68c1c185de5e5e99d456ec011ce4e77b9 /quantum/process_keycode
parent9f2bb11412d7e6e6f6451ebb7e6481d1cb668ea3 (diff)
downloadqmk_firmware-42a72c633b460beb900a94c7747737c71078da5b.tar.gz
qmk_firmware-42a72c633b460beb900a94c7747737c71078da5b.tar.xz
Fixed sprintf overflow
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r--quantum/process_keycode/process_terminal.c2
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);