summaryrefslogtreecommitdiffstats
path: root/src/phFriNfc_OvrHal.c
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2012-12-27 12:53:20 -0800
committerSteve Kondik <shade@chemlab.org>2012-12-27 12:53:20 -0800
commitdd55580a6f3d72175f0cb78c9fc4fac59cf9be09 (patch)
tree39bb820cbe6d2a093abb72cc837c52c95039c9c7 /src/phFriNfc_OvrHal.c
parent5199e59069db67d4f3bb2a466adab2e4647e8e70 (diff)
parent68c93f6f41998fbff40a3396a633faee4d595695 (diff)
downloadexternal_libnfc-nxp-dd55580a6f3d72175f0cb78c9fc4fac59cf9be09.zip
external_libnfc-nxp-dd55580a6f3d72175f0cb78c9fc4fac59cf9be09.tar.gz
external_libnfc-nxp-dd55580a6f3d72175f0cb78c9fc4fac59cf9be09.tar.bz2
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/external/libnfc-nxp into aosp
Conflicts: src/phHal4Nfc_ADD.c Change-Id: I950a66598954d21b49f723da2c58bff2ba719239
Diffstat (limited to 'src/phFriNfc_OvrHal.c')
-rw-r--r--src/phFriNfc_OvrHal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/phFriNfc_OvrHal.c b/src/phFriNfc_OvrHal.c
index 539210e..9efff94 100644
--- a/src/phFriNfc_OvrHal.c
+++ b/src/phFriNfc_OvrHal.c
@@ -323,7 +323,10 @@ static void phFriNfc_OvrHal_CB_Transceive(void *context,
if(NULL != pRecvdata && OvrHal->TranceiveInfo.sRecvData.buffer != NULL && pRecvdata->buffer != NULL)
{
/* Work-around for the NFCIP Tranceive API */
- memcpy(OvrHal->TranceiveInfo.sRecvData.buffer, pRecvdata->buffer, pRecvdata->length);
+ if (OvrHal->TranceiveInfo.sRecvData.buffer != pRecvdata->buffer)
+ {
+ memcpy(OvrHal->TranceiveInfo.sRecvData.buffer, pRecvdata->buffer, pRecvdata->length);
+ }
if (OvrHal->pndef_recv_length != NULL)
{
*OvrHal->pndef_recv_length = (uint16_t) pRecvdata->length;