Clear last byte of data buffer

This commit is contained in:
tekka007
2015-12-31 12:02:40 +01:00
parent 5e5b06aa28
commit 055bd2ff00
+1 -1
View File
@@ -141,7 +141,7 @@ inline void transportProcess() {
// This message is addressed to this node
mSetSigned(_msg,0); // Clear the sign-flag now as verification is completed
// clear bytes after message end
memset((uint8_t*)&_msg.data[messageLength],0x00,MAX_PAYLOAD-messageLength);
memset((uint8_t*)&_msg.data[messageLength],0x00,MAX_PAYLOAD-messageLength+1);
#if defined(MY_REPEATER_FEATURE)
if (_msg.last != _nc.parentNodeId) {