From bbf2b4e60ecff446e42f5acee5e252bfbd56bd87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 18 Jun 2015 11:33:07 +0800 Subject: [PATCH] xprops: Don't pass ULONG_MAX as a uint32_t parameter It seems the largest possible value is to be passed, so actually pass that instead. Note that even though the name of the xcb_get_property parameter is called 'long_length' its actually a uint32_t. https://bugzilla.gnome.org/show_bug.cgi?id=751136 --- src/x11/xprops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/xprops.c b/src/x11/xprops.c index 8de0450b5..d5934a4c1 100644 --- a/src/x11/xprops.c +++ b/src/x11/xprops.c @@ -184,7 +184,7 @@ async_get_property (xcb_connection_t *xcb_conn, Window xwindow, Atom xatom, Atom required_type) { return xcb_get_property (xcb_conn, False, xwindow, - xatom, required_type, 0, G_MAXULONG); + xatom, required_type, 0, G_MAXUINT32); } static gboolean