mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-23 19:21:59 +03:00
Fix SPIFFS path length check, add notes about FSInfo structure (#1273)
This commit is contained in:
@ -495,7 +495,7 @@ static bool isSpiffsFilenameValid(const char* name) {
|
||||
if (name == nullptr)
|
||||
return false;
|
||||
auto len = strlen(name);
|
||||
return len > 0 && len <= SPIFFS_OBJ_NAME_LEN;
|
||||
return len > 0 && len < SPIFFS_OBJ_NAME_LEN;
|
||||
}
|
||||
|
||||
// these symbols should be defined in the linker script for each flash layout
|
||||
|
Reference in New Issue
Block a user