[elm_cnp_helper] cutting paste text to fit string length
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Mon, 27 Sep 2010 11:49:54 +0000 (20:49 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Mon, 27 Sep 2010 11:49:54 +0000 (20:49 +0900)
src/lib/elm_cnp_helper.c

index 93c99c7..44b7171 100644 (file)
@@ -642,6 +642,8 @@ notify_handler_text(struct _elm_cnp_selection *sel,
    data = notify->data;
    cnp_debug("Notify handler text %d %d %p\n",data->format,data->length,data->data);
    str = mark_up((char*)data->data, NULL);
+   // FIXME: should it be cutted to fit length??
+   str[data->length] = '\0';
    cnp_debug("String is %s (from %s)\n",str,data->data);
    elm_entry_entry_insert(sel->requestwidget, str);
    free(str);