From: Dana Jansens Date: Wed, 27 Aug 2003 05:20:27 +0000 (+0000) Subject: double deref, props to 'mmj' for spotting this X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8173509e90ab97f60af6a81e955df82b3c2157a0;p=chaz%2Fopenbox double deref, props to 'mmj' for spotting this --- diff --git a/openbox/event.c b/openbox/event.c index 8c640522..b1a70dd4 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -210,9 +210,9 @@ static Window event_get_window(XEvent *e) default: #ifdef XKB if (extensions_xkb && e->type == extensions_xkb_event_basep) { - switch (((XkbAnyEvent*)&e)->xkb_type) { + switch (((XkbAnyEvent*)e)->xkb_type) { case XkbBellNotify: - window = ((XkbBellNotifyEvent*)&e)->window; + window = ((XkbBellNotifyEvent*)e)->window; default: window = None; }