From 032e34cc99edd84c33be4ae965dece56ef5803c1 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 26 Aug 2011 02:43:48 +0000 Subject: [PATCH] also fix text_converter I guess SVN revision: 62849 --- legacy/elementary/src/lib/elm_cnp_helper.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_cnp_helper.c b/legacy/elementary/src/lib/elm_cnp_helper.c index 18ed737f30..cb05dfeef6 100644 --- a/legacy/elementary/src/lib/elm_cnp_helper.c +++ b/legacy/elementary/src/lib/elm_cnp_helper.c @@ -951,11 +951,17 @@ notify_handler_html(Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify) static Eina_Bool -text_converter(char *target __UNUSED__, void *data, int size __UNUSED__, void **data_ret, int *size_ret, Ecore_X_Atom *ttype __UNUSED__, int *typesize __UNUSED__) +text_converter(char *target __UNUSED__, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *ttype __UNUSED__, int *typesize __UNUSED__) { Cnp_Selection *sel; cnp_debug("text converter\n"); + if (size != sizeof(int)) + { + if (data_ret) *data_ret = strndup(data, size - 1); + if (size_ret) *size_ret = size - 1; + return EINA_TRUE; + } sel = selections + *((int *)data); if (!sel->active) return EINA_TRUE;