test_omx: Update not to fill the whole buffer 3.50.04.07A
authorSam Nelson <sam.nelson@ti.com>
Wed, 9 Oct 2019 17:41:13 +0000 (13:41 -0400)
committerSam Nelson <sam.nelson@ti.com>
Wed, 9 Oct 2019 17:41:57 +0000 (13:41 -0400)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
packages/ti/ipc/tests/test_omx.c

index 5c0f6214a9d35fe148b15f7f91251e04e4389617..9f2553f6a41a82e56bd048e32742cde0fad696c9 100644 (file)
@@ -168,7 +168,7 @@ static RPC_OMX_ERRORTYPE RPC_SKEL_GetHandle(Void *srvc, UInt32 size,
      */
 
     strncpy(cComponentName,  (char *)((UArg)data + sizeof(map_info_type)),
-            sizeof(cComponentName));
+            sizeof(cComponentName)-1);
 
 #if CHATTER
     System_printf("RPC_SKEL_GetHandle: Component Name received: %s\n",