diff --git a/libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp b/libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp index 4f8d48567..f5fe86a72 100644 --- a/libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp +++ b/libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp @@ -37,6 +37,7 @@ File::File (Adafruit_LittleFS &fs) _fs = &fs; _is_dir = false; _name[0] = 0; + _name[LFS_NAME_MAX] = 0; _dir_path = NULL; _dir = NULL;