ecore_wl2: fix array overflow

fixes CID 1363215
This commit is contained in:
Marcel Hollerbach 2016-09-26 11:44:47 +02:00
parent 203b7a8fc6
commit 174f355446
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ data_offer_source_actions(void *data, struct wl_data_offer *wl_data_offer EINA_U
offer->actions = 0;
for (i = 0; i < sizeof(types); ++i)
for (i = 0; types[i] != 0; ++i)
{
if (source_actions & types[i])
offer->actions |= _wl_to_action_convert(types[i]);