aboutsummaryrefslogtreecommitdiffstats
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
parentemotion: Fix typos in doxygen (diff)
downloadefl-b84085ca8c2a3c3cece834f0f21fe72e48d86263.tar.gz
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_
}
else
{
- event->data = malloc(len + 1);
+ event->data = malloc(len);
if (!event->data)
{
free(event);
return ECORE_CALLBACK_CANCEL;
}
- strncpy(event->data, buffer, len);
- event->data[len] = '\0';
+ memcpy(event->data, buffer, len);
event->len = len;
event->done = EINA_FALSE;
ret = ECORE_CALLBACK_RENEW;