use event length instead of strlen() when dropping something into a terminal

the data member of Elm_Selection_Data may not be nul terminated, so
any string operation on this is liable to crash
This commit is contained in:
Mike Blumenkrantz 2015-08-13 14:43:04 -04:00
parent 4b25721a1d
commit 8d4b06617f
1 changed files with 1 additions and 1 deletions

View File

@ -5664,7 +5664,7 @@ _smart_cb_drop(void *data, Evas_Object *o EINA_UNUSED, Elm_Selection_Data *ev)
evas_object_smart_callback_call(obj, "popup", ev->data);
}
else
termpty_write(sd->pty, ev->data, strlen(ev->data));
termpty_write(sd->pty, ev->data, ev->len);
return EINA_TRUE;
}
#endif