Fix buffer overflow in buf
Fix cmd overflow introduced in 186ce0f
.
With a precision of %f being .6 and assuming a maximum (theoretical)
acceleration of 99999 we need 47 bytes including terminating byte.
Round it to 48
This commit is contained in:
parent
449d181971
commit
61faa49cbb
1 changed files with 1 additions and 1 deletions
|
@ -11247,7 +11247,7 @@ void restore_print_from_eeprom(bool mbl_was_active) {
|
|||
int feedrate_rec;
|
||||
int feedmultiply_rec;
|
||||
uint8_t fan_speed_rec;
|
||||
char cmd[30];
|
||||
char cmd[48];
|
||||
char filename[13];
|
||||
uint8_t depth = 0;
|
||||
char dir_name[9];
|
||||
|
|
Loading…
Reference in a new issue