Fixed missing null terminator in EEPROM.readString(address, value, maxLen) (#2439)

This commit is contained in:
Kevin M Fitzgerald 2019-02-14 12:31:37 -06:00 committed by Me No Dev
parent 010a7c60f7
commit 89d6b895d1

View File

@ -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;
}