Revert "[3.0] Change vulnerable function 'strcpy' to 'strncpy' for better security" 54/97654/1
authordongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:14:48 +0000 (09:14 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:14:52 +0000 (09:14 +0900)
This reverts commit 68e63fc17530f9d13337c0658e13cfbfc2c794d4.

Change-Id: I57d4f7097cf82a0f518bea03766400bb062df6a3

adaptors/ecore/wayland/clipboard-impl-ecore-wl.cpp

index aad03a3..1744b2d 100644 (file)
@@ -94,7 +94,7 @@ struct Clipboard::Impl
     {
       return;
     }
-    strncpy(mSendBuf, data, CLIPBOARD_BUFFER_SIZE);
+    strcpy(mSendBuf, data);
 
     // ELM_SEL_TYPE_CLIPBOARD - To distinguish clipboard selection in cbhm
     types[++i] = "CLIPBOARD_BEGIN";