]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fixed sprintf overflow
authorM1K3L08 <mikepress88@gmail.com>
Wed, 16 May 2018 20:00:04 +0000 (21:00 +0100)
committerJack Humbert <jack.humb@gmail.com>
Thu, 17 May 2018 01:05:43 +0000 (21:05 -0400)
quantum/process_keycode/process_terminal.c

index bc365dddfa4b2125298248ff8fe8f6b7ecb8ff2f..6998639f206c92e6655bf9b70ebc7316f7ce4218 100644 (file)
@@ -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);