forked from bblanchon/ArduinoJson
Fixed serialized()
not working with Flash strings (fixes #1030)
This commit is contained in:
@ -29,7 +29,7 @@ class SizedFlashStringAdapter {
|
||||
char* save(MemoryPool* pool) const {
|
||||
if (!_str) return NULL;
|
||||
char* dup = pool->allocFrozenString(_size);
|
||||
if (!dup) memcpy_P(dup, (const char*)_str, _size);
|
||||
if (dup) memcpy_P(dup, (const char*)_str, _size);
|
||||
return dup;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user