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
This commit is contained in:
Mike Blumenkrantz 2015-08-13 15:47:09 -04:00
parent d0ec306151
commit b84085ca8c
1 changed files with 2 additions and 3 deletions

View File

@ -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;