From dbaa343c972db29c01fd970e0c17dd84ba1f89f8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 10 Jul 2008 15:12:32 +0200 Subject: [PATCH] xutil: use sizeof() instead of strlen Signed-off-by: Julien Danjou --- common/xutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xutil.c b/common/xutil.c index 049dee161..77b4e8340 100644 --- a/common/xutil.c +++ b/common/xutil.c @@ -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,