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:
Alex Voinea 2021-02-10 13:43:46 +02:00
parent a830d5b6b7
commit b72ce00183
No known key found for this signature in database
GPG key ID: F5034E7CFCF2F973

View file

@ -786,7 +786,7 @@ void CardReader::presort() {
// By default re-read the names from SD for every compare
// retaining only two filenames at a time. This is very
// 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_date_bckp;