From 45d98d7990acd3db9e45fb758858dc8984d4084e Mon Sep 17 00:00:00 2001 From: Chris Knight Date: Wed, 20 Nov 2024 07:30:39 -0800 Subject: [PATCH] Fix nasa#440, rename parameter in CFE_PSP_MemSet handler to align with stub and actual code --- ut-stubs/src/cfe_psp_memaccess_api_handlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ut-stubs/src/cfe_psp_memaccess_api_handlers.c b/ut-stubs/src/cfe_psp_memaccess_api_handlers.c index bfb93297..b8cf1264 100644 --- a/ut-stubs/src/cfe_psp_memaccess_api_handlers.c +++ b/ut-stubs/src/cfe_psp_memaccess_api_handlers.c @@ -65,13 +65,13 @@ void UT_DefaultHandler_CFE_PSP_MemSet(void *UserObj, UT_EntryKey_t FuncKey, cons /* int32 CFE_PSP_MemSet(void *dest, uint8 value, uint32 size) */ void * dest = UT_Hook_GetArgValueByName(Context, "dest", void *); uint8 value = UT_Hook_GetArgValueByName(Context, "value", uint8); - uint32 size = UT_Hook_GetArgValueByName(Context, "size", uint32); + uint32 n = UT_Hook_GetArgValueByName(Context, "n", uint32); int32 Status; UT_Stub_GetInt32StatusCode(Context, &Status); if (Status >= 0) { - memset(dest, value, size); + memset(dest, value, n); } }