Fixed android build error
authorJaehong Jo <jaehong.jo@samsung.com>
Thu, 18 Jun 2015 06:02:30 +0000 (15:02 +0900)
committerErich Keane <erich.keane@intel.com>
Thu, 18 Jun 2015 16:35:18 +0000 (16:35 +0000)
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>
resource/csdk/connectivity/src/bt_edr_adapter/android/caedrserver.c

index d5533ea..2c5e693 100644 (file)
@@ -823,7 +823,7 @@ CAResult_t CAEDRNativeReadData(JNIEnv *env, uint32_t id, CAAdapterServerType_t t
         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)
         {