Fix bug with skipstone_message_pack()

This commit is contained in:
XANTRONIX Development 2020-09-21 21:34:24 -05:00
parent 5a3147f0dc
commit b1e81b4a16

View file

@ -15,7 +15,7 @@
if (len < offset + sizeof(v)) { \
goto done; \
} else { \
memcpy((uint8_t *)message, &v, sizeof(v)); \
memcpy((uint8_t *)message + offset, &v, sizeof(v)); \
offset += sizeof(v); \
} \
break; \
@ -27,7 +27,7 @@
if (len < offset + sizeof(v)) { \
goto done; \
} else { \
memcpy((uint8_t *)message, &v, sizeof(v)); \
memcpy((uint8_t *)message + offset, &v, sizeof(v)); \
offset += sizeof(v); \
} \
break; \