Skip to content

Commit

Permalink
Fix #406, Pass in correct CF_EotPacket_t size to msg
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Sep 5, 2023
1 parent 5df892e commit df8d23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsw/src/cf_cfdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,7 @@ void CF_CFDP_SendEotPkt(CF_Transaction_t *t)

if (PktBuf != NULL)
{
CFE_MSG_Init(&PktBuf->eot.tlm_header.Msg, CFE_SB_ValueToMsgId(CF_EOT_TLM_MID), sizeof(*PktBuf));
CFE_MSG_Init(&PktBuf->eot.tlm_header.Msg, CFE_SB_ValueToMsgId(CF_EOT_TLM_MID), sizeof(PktBuf->eot));

PktBuf->eot.channel = t->chan_num;
PktBuf->eot.direction = t->history->dir;
Expand Down

0 comments on commit df8d23b

Please sign in to comment.