From 9d617657116b3a97bad379e8c506861e48e9ad43 Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Mon, 27 Sep 2010 20:49:54 +0900 Subject: [PATCH] [elm_cnp_helper] cutting paste text to fit string length --- src/lib/elm_cnp_helper.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.7.4