1
0
Fork 0

Fixed sprintf overflow

This commit is contained in:
M1K3L08 2018-05-16 21:00:04 +01:00 committed by Jack Humbert
parent 9f2bb11412
commit 42a72c633b
1 changed files with 1 additions and 1 deletions

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