diff --git a/libraries/EEPROM/src/EEPROM.cpp b/libraries/EEPROM/src/EEPROM.cpp index 0e91f987..ab1f7c8a 100644 --- a/libraries/EEPROM/src/EEPROM.cpp +++ b/libraries/EEPROM/src/EEPROM.cpp @@ -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; }