summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-08-13 15:47:09 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-08-13 15:48:03 -0400
commitb84085ca8c2a3c3cece834f0f21fe72e48d86263 (patch)
tree9b07b9a445fe195da5e346fce7fcd278770d11e6 /src/lib/ecore_wayland
parentd0ec306151b53ab47186c86518f3baff9bba6d86 (diff)
ecore-wl: do not nul terminate drops
the application can do this based on mime types. we should not be nul terminating incremental drop data @fix
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_dnd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c b/src/lib/ecore_wayland/ecore_wl_dnd.c
index 51653283a0..20c4129628 100644
--- a/src/lib/ecore_wayland/ecore_wl_dnd.c
+++ b/src/lib/ecore_wayland/ecore_wl_dnd.c
@@ -670,14 +670,13 @@ _ecore_wl_dnd_selection_data_read(void *data, Ecore_Fd_Handler *fd_handler EINA_
670 } 670 }
671 else 671 else
672 { 672 {
673 event->data = malloc(len + 1); 673 event->data = malloc(len);
674 if (!event->data) 674 if (!event->data)
675 { 675 {
676 free(event); 676 free(event);
677 return ECORE_CALLBACK_CANCEL; 677 return ECORE_CALLBACK_CANCEL;
678 } 678 }
679 strncpy(event->data, buffer, len); 679 memcpy(event->data, buffer, len);
680 event->data[len] = '\0';
681 event->len = len; 680 event->len = len;
682 event->done = EINA_FALSE; 681 event->done = EINA_FALSE;
683 ret = ECORE_CALLBACK_RENEW; 682 ret = ECORE_CALLBACK_RENEW;