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:
Mariusz Ceier 2009-02-11 19:17:00 +01:00 committed by Julien Danjou
parent 050a6bbb61
commit 96ea073fc6
1 changed files with 1 additions and 1 deletions

2
ewmh.c
View File

@ -415,7 +415,7 @@ ewmh_process_client_message(xcb_client_message_event_t *ev)
void
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;
if(c->ismodal)