Skip to content

Commit

Permalink
Fix #440, rename parameter in CFE_PSP_MemSet handler to align with st…
Browse files Browse the repository at this point in the history
…ub and actual code
  • Loading branch information
CDKnightNASA committed Nov 20, 2024
1 parent ab82f6a commit 45d98d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ut-stubs/src/cfe_psp_memaccess_api_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 45d98d7

Please sign in to comment.