mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
xutil: use sizeof() instead of strlen
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
41d66ebf29
commit
dbaa343c97
1 changed files with 1 additions and 1 deletions
|
@ -497,7 +497,7 @@ xutil_cursor_new(xcb_connection_t *conn, unsigned int cursor_font)
|
|||
|
||||
/* Get the font for the cursor*/
|
||||
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);
|
||||
xcb_create_glyph_cursor(conn, cursor, font, font,
|
||||
|
|
Loading…
Reference in a new issue