Changed to OICStrcpyPartial
Change-Id: I8fde944a0f2b85bfdbee6adc276db209574bf422
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1337
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Naga Ashok Jampani <jn.ashok@samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
OIC_LOG_V(DEBUG, TAG, "[EDR][Native] btReadData: read %s, %d", buf, length);
char responseData[MAX_PDU_BUFFER] = { 0 };
- OICStrcpy(responseData, sizeof(responseData), buf, length);
+ OICStrcpyPartial(responseData, sizeof(responseData), buf, length);
switch (type)
{