Commit 89d6b895 authored by Kevin M Fitzgerald's avatar Kevin M Fitzgerald Committed by Me No Dev

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

parent 010a7c60
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment