Fixed memory alignment, which made ESP8266 crash (issue #104)

This commit is contained in:
Benoit Blanchon
2015-09-01 22:21:50 +02:00
parent 823a172681
commit 5a4d993f7d
7 changed files with 51 additions and 75 deletions

View File

@@ -63,7 +63,7 @@ class BlockJsonBuffer : public JsonBuffer {
void* allocInHead(size_t bytes) {
void* p = _head->data + _head->size;
_head->size += bytes;
_head->size += round_size_up(bytes);
return p;
}