We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c75cda + 9e3adb2 commit 85fb8d1Copy full SHA for 85fb8d1
src/mac/LoRaMac.c
@@ -1308,7 +1308,7 @@ static void ProcessRadioRxDone( void )
1308
1309
break;
1310
case FRAME_TYPE_PROPRIETARY:
1311
- memcpy1( MacCtx.RxPayload, &payload[pktHeaderLen], size );
+ memcpy1( MacCtx.RxPayload, &payload[pktHeaderLen], size - pktHeaderLen );
1312
1313
MacCtx.McpsIndication.McpsIndication = MCPS_PROPRIETARY;
1314
MacCtx.McpsIndication.Status = LORAMAC_EVENT_INFO_STATUS_OK;
0 commit comments