summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: 3425373)
raw | patch | inline | side by side (from parent 1: 3425373)
author | Sam Nelson <sam.nelson@ti.com> | |
Sat, 5 Oct 2019 13:28:01 +0000 (09:28 -0400) | ||
committer | Sam Nelson <sam.nelson@ti.com> | |
Tue, 8 Oct 2019 19:50:39 +0000 (15:50 -0400) |
No need to do caluculation of size using assumptions on structure
element
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
element
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
packages/ti/srvmgr/ServiceMgr.c | patch | blob | history |
index b85cf28000d548d19a7ef402c3af4036b2e75eb9..08f2de9cd2e124177bf7fb3a5c1af560a1754a9c 100644 (file)
/*
/*
- * Copyright (c) 2011-2013, Texas Instruments Incorporated
+ * Copyright (c) 2011-2019, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
/* Deal with the Task_Params to avoid IInstance mismatch */
params = &st->params;
Task_Params_init(params);
/* Deal with the Task_Params to avoid IInstance mismatch */
params = &st->params;
Task_Params_init(params);
- memcpy((Void *)(¶ms->arg0), &taskParams->arg0,
- sizeof(*params) - sizeof(Void *));
+ memcpy((Void *)(params), taskParams,
+ sizeof(*params));
params->instance->name = st->name;
st->reserved = reserved;
params->instance->name = st->name;
st->reserved = reserved;