Merge pull request #829 from attermann/file_term

Null termination of file name when max length
This commit is contained in:
Ha Thach authored and GitHub committed 2024-07-18 17:22:07 +07:00
commit bba4b53a2d
1 file changed
+1
@@ -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;