[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
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;
}