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
This commit is contained in:
Jonas Ådahl 2015-06-18 11:33:07 +08:00
parent bb4dcd62ec
commit bbf2b4e60e

View File

@ -184,7 +184,7 @@ async_get_property (xcb_connection_t *xcb_conn, Window xwindow,
Atom xatom, Atom required_type) Atom xatom, Atom required_type)
{ {
return xcb_get_property (xcb_conn, False, xwindow, return xcb_get_property (xcb_conn, False, xwindow,
xatom, required_type, 0, G_MAXULONG); xatom, required_type, 0, G_MAXUINT32);
} }
static gboolean static gboolean