Reduce reserved space on stack for LONG_FILENAME_LENGTH by 1 in presort
LONG_FILENAME_LENGTH already includes a +1 for the \0 string termination
This commit is contained in:
parent
a830d5b6b7
commit
b72ce00183
1 changed files with 1 additions and 1 deletions
|
@ -786,7 +786,7 @@ void CardReader::presort() {
|
||||||
// By default re-read the names from SD for every compare
|
// By default re-read the names from SD for every compare
|
||||||
// retaining only two filenames at a time. This is very
|
// retaining only two filenames at a time. This is very
|
||||||
// slow but is safest and uses minimal RAM.
|
// slow but is safest and uses minimal RAM.
|
||||||
char name1[LONG_FILENAME_LENGTH + 1];
|
char name1[LONG_FILENAME_LENGTH];
|
||||||
uint16_t crmod_time_bckp;
|
uint16_t crmod_time_bckp;
|
||||||
uint16_t crmod_date_bckp;
|
uint16_t crmod_date_bckp;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue