From 7c6d695094f56760af0d2a803c454afc99e00da4 Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 18 Oct 2022 12:23:32 +1000 Subject: [PATCH] Fix #2172, Remove last few uses of sprintf() --- modules/cfe_testcase/src/tbl_content_access_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cfe_testcase/src/tbl_content_access_test.c b/modules/cfe_testcase/src/tbl_content_access_test.c index 9492eee49..c10ccb2aa 100644 --- a/modules/cfe_testcase/src/tbl_content_access_test.c +++ b/modules/cfe_testcase/src/tbl_content_access_test.c @@ -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);