|
|
@ -747,7 +747,7 @@ void CardReader::updir() { |
|
|
|
strncpy(sortnames[i], LONGEST_FILENAME, SORTED_LONGNAME_MAXLEN); |
|
|
|
sortnames[i][SORTED_LONGNAME_MAXLEN - 1] = '\0'; |
|
|
|
#else |
|
|
|
strcpy(sortnames[i], SORTED_LONGNAME_MAXLEN); |
|
|
|
strncpy(sortnames[i], LONGEST_FILENAME, SORTED_LONGNAME_MAXLEN); |
|
|
|
#endif |
|
|
|
#if ENABLED(SDSORT_CACHE_NAMES) |
|
|
|
strcpy(sortshort[i], filename); |
|
|
@ -849,7 +849,7 @@ void CardReader::updir() { |
|
|
|
strncpy(sortnames[0], LONGEST_FILENAME, SORTED_LONGNAME_MAXLEN); |
|
|
|
sortnames[0][SORTED_LONGNAME_MAXLEN - 1] = '\0'; |
|
|
|
#else |
|
|
|
strcpy(sortnames[0], SORTED_LONGNAME_MAXLEN); |
|
|
|
strncpy(sortnames[0], LONGEST_FILENAME, SORTED_LONGNAME_MAXLEN); |
|
|
|
#endif |
|
|
|
#if ENABLED(SDSORT_CACHE_NAMES) |
|
|
|
strcpy(sortshort[0], filename); |
|
|
|