summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Nelson <sam.nelson@ti.com>2019-10-08 23:20:12 -0400
committerSam Nelson <sam.nelson@ti.com>2019-10-09 10:26:09 -0400
commit23a6f768554e0b5bb97a14ef92fb4cc25331b9f5 (patch)
tree2d8bb42166b16276be807f76411d4367f62b5d1a
parent9f0cf4fe51a59c04d51e57e1986c28ebd575f751 (diff)
downloadipc-23a6f768554e0b5bb97a14ef92fb4cc25331b9f5.tar.gz
tests: Fix issue with parameter order for strncpy
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rw-r--r--packages/ti/ipc/tests/test_omx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/ti/ipc/tests/test_omx.c b/packages/ti/ipc/tests/test_omx.c
index 011ea64..5c0f621 100644
--- a/packages/ti/ipc/tests/test_omx.c
+++ b/packages/ti/ipc/tests/test_omx.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2018, Texas Instruments Incorporated
+ * Copyright (c) 2011-2019, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -167,7 +167,8 @@ static RPC_OMX_ERRORTYPE RPC_SKEL_GetHandle(Void *srvc, UInt32 size,
* <hComp]
*/
- strncpy(cComponentName, sizeof(cComponentName), (char *)data + sizeof(map_info_type));
+ strncpy(cComponentName, (char *)((UArg)data + sizeof(map_info_type)),
+ sizeof(cComponentName));
#if CHATTER
System_printf("RPC_SKEL_GetHandle: Component Name received: %s\n",