forked from enlightenment/efl
efl selection manager - fix x11 cnp from entry to plain text conversion
use sel data not input data/size... copy & paste fix problem...
fixes 28d06f9a5f
@fix
This commit is contained in:
parent
b8f28e2a99
commit
703277b242
|
@ -1166,11 +1166,11 @@ _x11_text_converter(char *target, void *data, int size EINA_UNUSED, void **data_
|
|||
if ((sel->format & EFL_SELECTION_FORMAT_MARKUP) ||
|
||||
(sel->format & EFL_SELECTION_FORMAT_HTML))
|
||||
{
|
||||
char *tmp = malloc(size + 1);
|
||||
char *tmp = malloc(sel->data.len + 1);
|
||||
if (tmp)
|
||||
{
|
||||
strncpy(tmp, data, size);
|
||||
tmp[size] = 0;
|
||||
strncpy(tmp, sel->data.mem, sel->data.len);
|
||||
tmp[sel->data.len] = 0;
|
||||
*data_ret = _elm_util_mkup_to_text(tmp);
|
||||
if (size_ret && *data_ret) *size_ret = strlen(*data_ret);
|
||||
free(tmp);
|
||||
|
|
Loading…
Reference in New Issue