Skip to content
Snippets Groups Projects
Unverified Commit cba58b10 authored by Jason Smith's avatar Jason Smith Committed by GitHub
Browse files

Fix "possible buffer overrun" warning (#17513)

parent 90a43227
Branches
Tags
No related merge requests found
...@@ -188,8 +188,8 @@ void _lcd_ubl_edit_mesh() { ...@@ -188,8 +188,8 @@ void _lcd_ubl_edit_mesh() {
*/ */
void _lcd_ubl_validate_custom_mesh() { void _lcd_ubl_validate_custom_mesh() {
char ubl_lcd_gcode[24]; char ubl_lcd_gcode[24];
const int temp = TERN(HAS_HEATED_BED, custom_bed_temp, 0); const int16_t temp = TERN(HAS_HEATED_BED, custom_bed_temp, 0);
sprintf_P(ubl_lcd_gcode, PSTR("G28\nG26 C B%i H%i P"), temp, custom_hotend_temp); sprintf_P(ubl_lcd_gcode, PSTR("G28\nG26 C B%" PRIi16 " H%" PRIi16 " P"), temp, custom_hotend_temp);
queue.inject(ubl_lcd_gcode); queue.inject(ubl_lcd_gcode);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment