Create string tightly when retrive string from cbhm callback event
authorTaeyun An <ty.an@samsung.com>
Thu, 13 Jun 2013 14:50:26 +0000 (23:50 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 10 Jul 2013 03:05:08 +0000 (03:05 +0000)
[Title] Create string tightly when retrive string from cbhm callback event.
[Issue#] DCM-1918
[Problem] \u0000 null value is inserted at the end of string.
[Cause] Included null value string length is transfered from cbhm callback event.
[Solution] Create string tightly when retrive string from cbhm callback event

Change-Id: I22ca8267c5bd021987bf13118cc98c7b686a0f5e

Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp

index e23264a..81b5b10 100755 (executable)
@@ -357,7 +357,7 @@ static int notifyTarget(ClipData* clipData, Ecore_X_Event_Selection_Notify* noti
 static int notifyText(ClipData* clipData, Ecore_X_Event_Selection_Notify* notifyData)
 {
     Ecore_X_Selection_Data* pData = (Ecore_X_Selection_Data*) notifyData->data;
-    pasteSelectedClipboardItem(String::fromUTF8(pData->data, (int)pData->length), String("PlainText"), clipData->clipboardHelper);
+    pasteSelectedClipboardItem(String::fromUTF8(pData->data), String("PlainText"), clipData->clipboardHelper);
 
     return 0;
 }