Skip to content

Commit

Permalink
HOTFIX: Update to #674, use metadata for packet length.
Browse files Browse the repository at this point in the history
For CFE_SB_SendMsg this was still reading the length directly
from the header.  It needs to use the metadata value instead.
  • Loading branch information
jphickey committed May 11, 2020
1 parent 7b56b85 commit 6f06b16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fsw/cfe-core/ut-stubs/ut_sb_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ int32 CFE_SB_SendMsg(CFE_SB_Msg_t *MsgPtr)

if (status >= 0)
{
UT_Stub_CopyFromLocal(UT_KEY(CFE_SB_SendMsg), MsgPtr->Byte, CCSDS_RD_LEN(MsgPtr->Hdr));
UT_Stub_CopyFromLocal(UT_KEY(CFE_SB_SendMsg), MsgPtr->Byte,
CFE_SB_StubMsg_GetMetaData(MsgPtr)->Length);
}

return status;
Expand Down

0 comments on commit 6f06b16

Please sign in to comment.