summaryrefslogtreecommitdiff
path: root/gui/aoi.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-20 20:42:34 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-20 20:42:34 -0300
commitca924a3926e2f726fc41b442a1b7b8235262d8a3 (patch)
treed7101298916944336d1e96546b1ee7514f68c80e /gui/aoi.h
parentb857d7dc32a12d8a1703110177d44289b8773fa7 (diff)
downloadeeshow-ca924a3926e2f726fc41b442a1b7b8235262d8a3.tar.gz
eeshow-ca924a3926e2f726fc41b442a1b7b8235262d8a3.tar.bz2
eeshow-ca924a3926e2f726fc41b442a1b7b8235262d8a3.zip
eeshow/gui/ (aoi_click): also protect from access after free
Unlike aoi_hover, aoi_click was not observed to actually run into this problem. But better safe than sorry.
Diffstat (limited to 'gui/aoi.h')
-rw-r--r--gui/aoi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/aoi.h b/gui/aoi.h
index da2955b..6ac9889 100644
--- a/gui/aoi.h
+++ b/gui/aoi.h
@@ -34,7 +34,7 @@ struct aoi *aoi_add(struct aoi **aois, const struct aoi *cfg);
void aoi_update(struct aoi *aoi, const struct aoi *cfg);
bool aoi_hover(struct aoi *const *aois, int x, int y);
-bool aoi_click(const struct aoi *aois, int x, int y);
+bool aoi_click(struct aoi *const *aois, int x, int y);
void aoi_set_related(struct aoi *aoi, const struct aoi *related);