From: Hyoyoung Chang Date: Mon, 27 Sep 2010 11:49:54 +0000 (+0900) Subject: [elm_cnp_helper] cutting paste text to fit string length X-Git-Tag: origin~121^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d617657116b3a97bad379e8c506861e48e9ad43;p=framework%2Fuifw%2Felementary.git [elm_cnp_helper] cutting paste text to fit string length --- diff --git a/src/lib/elm_cnp_helper.c b/src/lib/elm_cnp_helper.c index 93c99c7..44b7171 100644 --- a/src/lib/elm_cnp_helper.c +++ b/src/lib/elm_cnp_helper.c @@ -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);