mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 08:48:27 +01:00
Append terminator in saveStringFromFreeZone()
This commit is contained in:
@@ -204,8 +204,7 @@ class MemoryPoolPrint : public Print {
|
||||
}
|
||||
|
||||
CopiedString str() {
|
||||
_string[_size++] = 0;
|
||||
ARDUINOJSON_ASSERT(_size <= _capacity);
|
||||
ARDUINOJSON_ASSERT(_size < _capacity);
|
||||
return _pool->saveStringFromFreeZone(_size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user