]> git.sur5r.net Git - i3/i3/blobdiff - src/xinerama.c
libi3: change scalloc() signature to match calloc()
[i3/i3] / src / xinerama.c
index ec030230760b39f927e7a7fd3048c26d7bce6f3f..cae71fc2b0da8d155617ed9397c3b61c7b3d9170 100644 (file)
@@ -56,7 +56,7 @@ static void query_screens(xcb_connection_t *conn) {
             s->rect.width = min(s->rect.width, screen_info[screen].width);
             s->rect.height = min(s->rect.height, screen_info[screen].height);
         } else {
-            s = scalloc(sizeof(Output));
+            s = scalloc(1, sizeof(Output));
             sasprintf(&(s->name), "xinerama-%d", num_screens);
             DLOG("Created new Xinerama screen %s (%p)\n", s->name, s);
             s->active = true;