mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-04 07:12:33 +01:00 
			
		
		
		
	Fixed sprintf overflow
This commit is contained in:
		
							parent
							
								
									9f2bb11412
								
							
						
					
					
						commit
						42a72c633b
					
				@ -158,7 +158,7 @@ void terminal_keymap(void) {
 | 
				
			|||||||
            for (int c = 0; c < MATRIX_COLS; c++) {
 | 
					            for (int c = 0; c < MATRIX_COLS; c++) {
 | 
				
			||||||
                uint16_t keycode = pgm_read_word(&keymaps[layer][r][c]);
 | 
					                uint16_t keycode = pgm_read_word(&keymaps[layer][r][c]);
 | 
				
			||||||
                char keycode_s[8];
 | 
					                char keycode_s[8];
 | 
				
			||||||
                sprintf(keycode_s, "0x%04x, ", keycode);
 | 
					                sprintf(keycode_s, "0x%04x,", keycode);
 | 
				
			||||||
                send_string(keycode_s);
 | 
					                send_string(keycode_s);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            send_string(newline);
 | 
					            send_string(newline);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user