From 6ef8e73ccf67afaa2663727d56a1f0da040a9107 Mon Sep 17 00:00:00 2001 From: Taeyun An Date: Thu, 13 Jun 2013 23:50:26 +0900 Subject: [PATCH 1/1] Create string tightly when retrive string from cbhm callback event [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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp b/Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp index e23264a..81b5b10 100755 --- a/Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp +++ b/Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp @@ -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; } -- 2.7.4