ewmh.c: Fix array size
If all state bits are set, ewmh_client_update_hints state buffer overflows. Signed-off-by: Mariusz Ceier <mceier@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
050a6bbb61
commit
96ea073fc6
2
ewmh.c
2
ewmh.c
|
@ -415,7 +415,7 @@ ewmh_process_client_message(xcb_client_message_event_t *ev)
|
||||||
void
|
void
|
||||||
ewmh_client_update_hints(client_t *c)
|
ewmh_client_update_hints(client_t *c)
|
||||||
{
|
{
|
||||||
xcb_atom_t state[8]; /* number of defined state atoms */
|
xcb_atom_t state[10]; /* number of defined state atoms */
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
if(c->ismodal)
|
if(c->ismodal)
|
||||||
|
|
Loading…
Reference in New Issue