Skip to content

Commit

Permalink
Merge pull request nasa#57 from skliper/fix47-dwell_table_test_string
Browse files Browse the repository at this point in the history
Fix nasa#47, Explictly size MD dwell table unit test string
  • Loading branch information
dzbaker authored Aug 31, 2023
2 parents 7c7a544 + 4f0a9ec commit 25249f8
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 25249f8

Please sign in to comment.