Fix 3.0 prevent issue 18/65918/1 accepted/tizen/common/20160414.142635 accepted/tizen/mobile/20160414.092128 accepted/tizen/wearable/20160414.092050 submit/tizen/20160414.045606
authorJihoon Jung <jh8801.jung@samsung.com>
Thu, 14 Apr 2016 04:04:23 +0000 (13:04 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Thu, 14 Apr 2016 04:05:42 +0000 (13:05 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: Ib209c3d4ec19ac35b30311c7827effef885420a6

src/oem/oem_emul.c

index f332d5c..a810d8c 100644 (file)
@@ -3248,7 +3248,7 @@ static bool net_nfc_emul_controller_secure_element_get_atr(net_nfc_target_handle
        *result = NET_NFC_OK;
        *atr = NULL;
 
-       strcpy(buffer, "getatr");
+       strncpy(buffer, "getatr", sizeof(buffer));
 
     temp = (data_s *)calloc(1, sizeof(*temp));
     if (temp != NULL) {
@@ -3284,7 +3284,7 @@ static bool net_nfc_emul_controller_secure_element_send_apdu(net_nfc_target_hand
        *response = NULL;
 
        //buffer response
-       strcpy(buffer, "response");
+       strncpy(buffer, "response", sizeof(buffer));
 
        length = strlen(buffer);