]> git.sur5r.net Git - i3/i3/blobdiff - src/handlers.c
libi3: change scalloc() signature to match calloc()
[i3/i3] / src / handlers.c
index 8e08d697c505641ed5ed46c0171fea6045862dcc..49636543e1e63359674320f9f2191e41e29ca5c4 100644 (file)
@@ -760,7 +760,7 @@ static void handle_client_message(xcb_client_message_event_t *event) {
         uint32_t rnd = event->data.data32[1];
         DLOG("[i3 sync protocol] Sending random value %d back to X11 window 0x%08x\n", rnd, window);
 
-        void *reply = scalloc(32);
+        void *reply = scalloc(32, 1);
         xcb_client_message_event_t *ev = reply;
 
         ev->response_type = XCB_CLIENT_MESSAGE;