partially revert static outputString in RenderCurrentFolder #477
@@ -885,10 +885,12 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
fileNameWasCut = true;
|
fileNameWasCut = true;
|
||||||
fileNameLen = MAX_PRINTABLE_FILENAME_LEN;
|
fileNameLen = MAX_PRINTABLE_FILENAME_LEN;
|
||||||
}
|
}
|
||||||
|
static char outputString[MAX_PRINTABLE_FILENAME_LEN];
|
||||||
|
#else
|
||||||
|
char outputString[fileNameLen];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Bugfix for non-printable special characters which are now replaced by underscores.
|
// Bugfix for non-printable special characters which are now replaced by underscores.
|
||||||
static char outputString[MAX_PRINTABLE_FILENAME_LEN] = {'\0'};
|
|
||||||
for (unsigned int i = 0; i <= fileNameLen; i++) {
|
for (unsigned int i = 0; i <= fileNameLen; i++) {
|
||||||
if (isPrintable(fileName[i])) {
|
if (isPrintable(fileName[i])) {
|
||||||
outputString[i] = fileName[i];
|
outputString[i] = fileName[i];
|
||||||
|
Reference in New Issue
Block a user