summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-09-26 11:44:47 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-09-26 13:17:24 +0200
commit174f35544678c436f8c71ac1562fcb982e783228 (patch)
tree84651f9a16b0985f8db581937bcfc1050e6385d6
parent203b7a8fc67a11b80170e3a108f03db32355b3e2 (diff)
downloadefl-174f35544678c436f8c71ac1562fcb982e783228.tar.gz
ecore_wl2: fix array overflow
fixes CID 1363215
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_dnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_dnd.c b/src/lib/ecore_wl2/ecore_wl2_dnd.c
index 9b9af766bd..14257cd430 100644
--- a/src/lib/ecore_wl2/ecore_wl2_dnd.c
+++ b/src/lib/ecore_wl2/ecore_wl2_dnd.c
@@ -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]);