Skip to content

Commit

Permalink
Fix #47, Explictly size MD dwell table unit test string
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Aug 2, 2023
1 parent 7c7a544 commit 4f0a9ec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions unit-test/md_dwell_tbl_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,8 +1113,8 @@ void MD_UpdateTableDwellEntry_Test_Error(void)
#if MD_SIGNATURE_OPTION == 1
void MD_UpdateTableSignature_Test(void)
{
uint16 TableIndex = 0;
char newsignature[] = "newsignature";
uint16 TableIndex = 0;
char newsignature[MD_SIGNATURE_FIELD_LENGTH] = "newsignature";

MD_DwellTableLoad_t LoadTbl;
MD_DwellTableLoad_t *LoadTblPtr = &LoadTbl;
Expand All @@ -1136,8 +1136,8 @@ void MD_UpdateTableSignature_Test(void)

void MD_UpdateTableSignature_Test_Updated(void)
{
uint16 TableIndex = 0;
char newsignature[] = "newsignature";
uint16 TableIndex = 0;
char newsignature[MD_SIGNATURE_FIELD_LENGTH] = "newsignature";

/* Set MD_LoadTablePtr = &MD_DWELL_TBL_TEST_GlobalLoadTable */
MD_DwellTableLoad_t LoadTbl;
Expand All @@ -1161,8 +1161,8 @@ void MD_UpdateTableSignature_Test_Updated(void)

void MD_UpdateTableSignature_Test_Error(void)
{
uint16 TableIndex = 0;
char newsignature[] = "newsignature";
uint16 TableIndex = 0;
char newsignature[MD_SIGNATURE_FIELD_LENGTH] = "newsignature";
int32 strCmpResult;
char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH];

Expand Down

0 comments on commit 4f0a9ec

Please sign in to comment.