Skip to content

Commit

Permalink
Merge pull request nasa#74 from jphickey/fix-72-alloc-size
Browse files Browse the repository at this point in the history
Fix nasa#72, correct allocation size for CFDP PDU
  • Loading branch information
astrogeco authored Dec 8, 2021
2 parents c4c8b58 + eddca6d commit c5bdbd3
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 @@ -398,7 +398,7 @@ pdu_header_t *CF_CFDP_MsgOutGet(const transaction_t *t, int silent)
(OS_CountSemTimedWait(c->sem_id, 0) == OS_SUCCESS)) ||
(!CF_AppData.config_table->chan[t->chan_num].sem_name[0])))
{
CF_AppData.engine.out.msg = CFE_SB_AllocateMessageBuffer(CF_MAX_PDU_SIZE);
CF_AppData.engine.out.msg = CFE_SB_AllocateMessageBuffer(offsetof(pdu_s_msg_t, ph) + CF_MAX_PDU_SIZE);
}

if (!CF_AppData.engine.out.msg)
Expand Down

0 comments on commit c5bdbd3

Please sign in to comment.