xutil: use sizeof() instead of strlen
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
41d66ebf29
commit
dbaa343c97
|
@ -497,7 +497,7 @@ xutil_cursor_new(xcb_connection_t *conn, unsigned int cursor_font)
|
||||||
|
|
||||||
/* Get the font for the cursor*/
|
/* Get the font for the cursor*/
|
||||||
font = xcb_generate_id(conn);
|
font = xcb_generate_id(conn);
|
||||||
xcb_open_font(conn, font, a_strlen("cursor"), "cursor");
|
xcb_open_font(conn, font, sizeof("cursor"), "cursor");
|
||||||
|
|
||||||
cursor = xcb_generate_id(conn);
|
cursor = xcb_generate_id(conn);
|
||||||
xcb_create_glyph_cursor(conn, cursor, font, font,
|
xcb_create_glyph_cursor(conn, cursor, font, font,
|
||||||
|
|
Loading…
Reference in New Issue