diff --git a/examples/customHTML/customHTML.ino b/examples/customHTML/customHTML.ino
index fb73cf58..123f1561 100644
--- a/examples/customHTML/customHTML.ino
+++ b/examples/customHTML/customHTML.ino
@@ -83,9 +83,9 @@ bool startFilesystem() {
*/
#ifdef ESP32
void getFsInfo(fsInfo_t* fsInfo) {
- fsInfo->totalBytes = LittleFS.totalBytes();
- fsInfo->usedBytes = LittleFS.usedBytes();
- strcpy(fsInfo->fsName, "LittleFS");
+ fsInfo->fsName = "LittleFS";
+ fsInfo->totalBytes = LittleFS.totalBytes();
+ fsInfo->usedBytes = LittleFS.usedBytes();
}
#endif
diff --git a/examples/customOptions/customOptions.ino b/examples/customOptions/customOptions.ino
index d802a11c..10e3047f 100644
--- a/examples/customOptions/customOptions.ino
+++ b/examples/customOptions/customOptions.ino
@@ -88,9 +88,9 @@ bool startFilesystem() {
*/
#ifdef ESP32
void getFsInfo(fsInfo_t* fsInfo) {
- fsInfo->totalBytes = LittleFS.totalBytes();
- fsInfo->usedBytes = LittleFS.usedBytes();
- strcpy(fsInfo->fsName, "LittleFS");
+ fsInfo->fsName = "LittleFS";
+ fsInfo->totalBytes = LittleFS.totalBytes();
+ fsInfo->usedBytes = LittleFS.usedBytes();
}
#endif