]> git.sur5r.net Git - i3/i3/blobdiff - src/xinerama.c
introduce sasprintf() in libi3, use it everywhere
[i3/i3] / src / xinerama.c
index 6f3a30db22d758d0ec9021c17f2e64dc55c28195..c3ad97c3d7ed62c22ff71412abdc6cb1a5f62850 100644 (file)
@@ -56,7 +56,7 @@ static void query_screens(xcb_connection_t *conn) {
             s->rect.height = min(s->rect.height, screen_info[screen].height);
         } else {
             s = scalloc(sizeof(Output));
-            asprintf(&(s->name), "xinerama-%d", num_screens);
+            sasprintf(&(s->name), "xinerama-%d", num_screens);
             DLOG("Created new Xinerama screen %s (%p)\n", s->name, s);
             s->active = true;
             s->rect.x = screen_info[screen].x_org;