Fix bug with skipstone_message_pack()
This commit is contained in:
parent
5a3147f0dc
commit
b1e81b4a16
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
if (len < offset + sizeof(v)) { \
|
if (len < offset + sizeof(v)) { \
|
||||||
goto done; \
|
goto done; \
|
||||||
} else { \
|
} else { \
|
||||||
memcpy((uint8_t *)message, &v, sizeof(v)); \
|
memcpy((uint8_t *)message + offset, &v, sizeof(v)); \
|
||||||
offset += sizeof(v); \
|
offset += sizeof(v); \
|
||||||
} \
|
} \
|
||||||
break; \
|
break; \
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
if (len < offset + sizeof(v)) { \
|
if (len < offset + sizeof(v)) { \
|
||||||
goto done; \
|
goto done; \
|
||||||
} else { \
|
} else { \
|
||||||
memcpy((uint8_t *)message, &v, sizeof(v)); \
|
memcpy((uint8_t *)message + offset, &v, sizeof(v)); \
|
||||||
offset += sizeof(v); \
|
offset += sizeof(v); \
|
||||||
} \
|
} \
|
||||||
break; \
|
break; \
|
||||||
|
|
Loading…
Add table
Reference in a new issue