Skip to content

Commit

Permalink
Fixed sprintf overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
M1K8 authored and jackhumbert committed May 17, 2018
1 parent 9f2bb11 commit 42a72c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/process_keycode/process_terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 42a72c6

Please sign in to comment.