[mutter] xprops: Don't pass ULONG_MAX as a uint32_t parameter



commit bbf2b4e60ecff446e42f5acee5e252bfbd56bd87
Author: Jonas Ådahl <jadahl gmail com>
Date:   Thu Jun 18 11:33:07 2015 +0800

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/x11/xprops.c b/src/x11/xprops.c
index 8de0450..d5934a4 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]