diff --git a/examples/csvLogger/csvLogger.ino b/examples/csvLogger/csvLogger.ino index 3a00e941..82a46119 100644 --- a/examples/csvLogger/csvLogger.ino +++ b/examples/csvLogger/csvLogger.ino @@ -113,7 +113,7 @@ void setup() { server.setFsInfoCallback([](fsInfo_t* fsInfo) { fsInfo->totalBytes = LittleFS.totalBytes(); fsInfo->usedBytes = LittleFS.usedBytes(); - strcpy(fsInfo->fsName, "LittleFS"); + fsInfo->fsName = "LittleFS"; }); #endif