mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Fixed serialized() not working with Flash strings (fixes #1030)
				
					
				
			This commit is contained in:
		| @@ -1,6 +1,11 @@ | ||||
| ArduinoJson: change log | ||||
| ======================= | ||||
|  | ||||
| HEAD | ||||
| ---- | ||||
|  | ||||
| * Fixed `serialized()` not working with Flash strings (issue #1030) | ||||
|  | ||||
| v6.11.0 (2019-05-26) | ||||
| ------- | ||||
|  | ||||
|   | ||||
| @@ -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