Add initialization to OutputString. You never know.
This commit is contained in:
@@ -924,9 +924,9 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
fileNameWasCut = true;
|
fileNameWasCut = true;
|
||||||
fileNameLen = MAX_PRINTABLE_FILENAME_LEN;
|
fileNameLen = MAX_PRINTABLE_FILENAME_LEN;
|
||||||
}
|
}
|
||||||
char outputString[MAX_PRINTABLE_FILENAME_LEN];
|
char outputString[MAX_PRINTABLE_FILENAME_LEN] = {'\0'};
|
||||||
#else
|
#else
|
||||||
char outputString[fileNameLen];
|
char outputString[fileNameLen] = {'\0'};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Bugfix for non-printable special characters
|
// Bugfix for non-printable special characters
|
||||||
|
Reference in New Issue
Block a user