From a6e95c7d25f3cc7525b4bf5a6f8e65223c263a3e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 7 Oct 2017 15:07:05 -0500 Subject: [PATCH] Fix display issue with SD_ALPHA_SORT caching --- Marlin/cardreader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/cardreader.h b/Marlin/cardreader.h index c9bea6036..75674a8e5 100644 --- a/Marlin/cardreader.h +++ b/Marlin/cardreader.h @@ -120,10 +120,10 @@ private: char **sortshort, **sortnames; #else char sortshort[SDSORT_LIMIT][FILENAME_LENGTH]; - char sortnames[SDSORT_LIMIT][FILENAME_LENGTH]; + char sortnames[SDSORT_LIMIT][LONG_FILENAME_LENGTH]; #endif #elif DISABLED(SDSORT_USES_STACK) - char sortnames[SDSORT_LIMIT][FILENAME_LENGTH]; + char sortnames[SDSORT_LIMIT][LONG_FILENAME_LENGTH]; #endif // Folder sorting uses an isDir array when caching items.