summaryrefslogtreecommitdiff
path: root/gui/aoi.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-20 20:39:08 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-20 20:39:08 -0300
commitb857d7dc32a12d8a1703110177d44289b8773fa7 (patch)
tree7c00e621270cae5b7b8cad8ec267f273be25965f /gui/aoi.h
parent1dc049786ea10a5629d79b278220ea923f74e422 (diff)
downloadeeshow-b857d7dc32a12d8a1703110177d44289b8773fa7.tar.gz
eeshow-b857d7dc32a12d8a1703110177d44289b8773fa7.tar.bz2
eeshow-b857d7dc32a12d8a1703110177d44289b8773fa7.zip
eeshow/gui/ (aoi_hover): could cause an access after free
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 935f526..da2955b 100644
--- a/gui/aoi.h
+++ b/gui/aoi.h
@@ -32,7 +32,7 @@ struct aoi {
struct aoi *aoi_add(struct aoi **aois, const struct aoi *cfg);
void aoi_update(struct aoi *aoi, const struct aoi *cfg);
-bool aoi_hover(const struct aoi *aois, int x, int y);
+bool aoi_hover(struct aoi *const *aois, int x, int y);
bool aoi_click(const struct aoi *aois, int x, int y);