Fixed missing null terminator in EEPROM.readString(address, value, maxLen) (#2439)
This commit is contained in:
parent
010a7c60f7
commit
89d6b895d1
@ -279,6 +279,7 @@ size_t EEPROMClass::readString (int address, char* value, size_t maxLen)
|
||||
return 0;
|
||||
|
||||
memcpy((uint8_t*) value, _data + address, len);
|
||||
value[len] = 0;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user