Skip to content

Commit

Permalink
Update nasa#494, OS_TaskFindIdBySystemData stub
Browse files Browse the repository at this point in the history
Correct output value
  • Loading branch information
jphickey committed Jun 16, 2020
1 parent 6d88b77 commit b6b1ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ut-stubs/osapi-utstub-task.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ int32 OS_TaskFindIdBySystemData(uint32 *task_id, const void *sysdata, size_t sys
status = UT_DEFAULT_IMPL(OS_TaskFindIdBySystemData);

if (status == OS_SUCCESS &&
UT_Stub_CopyToLocal(UT_KEY(OS_TaskFindIdBySystemData), (void**)&task_id, sizeof(task_id)) < sizeof(task_id))
UT_Stub_CopyToLocal(UT_KEY(OS_TaskFindIdBySystemData), task_id, sizeof(*task_id)) < sizeof(*task_id))
{
*task_id = 1;
UT_FIXUP_ID(*task_id, UT_OBJTYPE_TASK);
Expand Down

0 comments on commit b6b1ad8

Please sign in to comment.