From 6f06b1619648d1bd137be158aba8e25f8d396fae Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Mon, 11 May 2020 12:34:04 -0400 Subject: [PATCH] HOTFIX: Update to #674, use metadata for packet length. For CFE_SB_SendMsg this was still reading the length directly from the header. It needs to use the metadata value instead. --- fsw/cfe-core/ut-stubs/ut_sb_stubs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fsw/cfe-core/ut-stubs/ut_sb_stubs.c b/fsw/cfe-core/ut-stubs/ut_sb_stubs.c index fe04a804e..c77d4324a 100644 --- a/fsw/cfe-core/ut-stubs/ut_sb_stubs.c +++ b/fsw/cfe-core/ut-stubs/ut_sb_stubs.c @@ -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;