X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fxcb.c;fp=src%2Fxcb.c;h=001f6b51958cf46651304d3644134a3c40e46ba2;hb=bc52fae15c75635e9cec57e25619d304dba3a69b;hp=303d6af1cf2c9b583fff8653bd69fe230e00e457;hpb=05fb9096362e788f032de6eccea2d7fea03317ab;p=i3%2Fi3 diff --git a/src/xcb.c b/src/xcb.c index 303d6af1..001f6b51 100644 --- a/src/xcb.c +++ b/src/xcb.c @@ -114,7 +114,7 @@ void send_take_focus(xcb_window_t window, xcb_timestamp_t timestamp) { /* Every X11 event is 32 bytes long. Therefore, XCB will copy 32 bytes. * In order to properly initialize these bytes, we allocate 32 bytes even * though we only need less for an xcb_configure_notify_event_t */ - void *event = scalloc(32); + void *event = scalloc(32, 1); xcb_client_message_event_t *ev = event; ev->response_type = XCB_CLIENT_MESSAGE;