Skip to content

Commit

Permalink
Merge pull request #829 from attermann/file_term
Browse files Browse the repository at this point in the history
Null termination of file name when max length
  • Loading branch information
hathach committed Jul 18, 2024
2 parents 699a6c5 + 1b12011 commit bba4b53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bba4b53

Please sign in to comment.