Fixed sprintf overflow

pull/2989/head 0.6.38
M1K3L08 7 years ago committed by Jack Humbert
parent 9f2bb11412
commit 42a72c633b

@ -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);

Loading…
Cancel
Save