Skip to content

Commit

Permalink
Fix #2172, Remove last few uses of sprintf()
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Oct 26, 2022
1 parent f0703a7 commit 7c6d695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cfe_testcase/src/tbl_content_access_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void TestGetReleaseAddresses(void)
TblPtrs[0] = TblPtrsList;
for (int i = 1; i < numValidTbls + 1; i++)
{
sprintf(TblName, "%d", i);
snprintf(TblName, sizeof(TblName), "%d", i);
UtAssert_INT32_EQ(
CFE_TBL_Register(&TblHandles[i], TblName, sizeof(TBL_TEST_Table_t), CFE_TBL_OPT_DEFAULT, NULL),
CFE_SUCCESS);
Expand Down

0 comments on commit 7c6d695

Please sign in to comment.