introduce sasprintf() in libi3, use it everywhere

This commit is contained in:
Michael Stapelberg
2011-10-23 13:16:56 +01:00
parent 14abafb3c8
commit 9d15a00ba8
18 changed files with 68 additions and 66 deletions

View File

@ -265,7 +265,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
nc->border_width = geom->border_width;
char *name;
asprintf(&name, "[i3 con] container around %p", cwindow);
sasprintf(&name, "[i3 con] container around %p", cwindow);
x_set_name(nc, name);
free(name);