From 2849d5afc3cd100f47bcf5337631aa328bcc4afc Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Fri, 9 Jun 2023 22:36:30 +0200 Subject: [PATCH] Switch back from char* to const char* withyout copy routine for testing. --- Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp index 03b0883b..3467ddd5 100755 --- a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp @@ -913,7 +913,7 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) { SERIAL_ECHOLN(currentFileList.filename()); #endif - char* fileName = strdup(currentFileList.filename()); + const char* fileName = currentFileList.filename(); int fileNameLen = strlen(fileName); // Cut off too long filenames.