[PATCH] xfixes: Fix minor number in QueryVersion

Daniel Martin consume.noise at gmail.com
Fri Dec 7 10:38:55 PST 2012


Due to a typo the major version number was passed as minor version to
version_compare().

Regression-from: ffd4874798ba54f86acac75779a15b4babeaa5f3

Signed-off-by: Daniel Martin <consume.noise at gmail.com>
---
 xfixes/xfixes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xfixes/xfixes.c b/xfixes/xfixes.c
index 52c57df..48af9ea 100644
--- a/xfixes/xfixes.c
+++ b/xfixes/xfixes.c
@@ -74,7 +74,7 @@ ProcXFixesQueryVersion(ClientPtr client)
 
     if (version_compare(stuff->majorVersion, stuff->minorVersion,
                         SERVER_XFIXES_MAJOR_VERSION,
-                        SERVER_XFIXES_MAJOR_VERSION) < 0) {
+                        SERVER_XFIXES_MINOR_VERSION) < 0) {
         rep.majorVersion = stuff->majorVersion;
         rep.minorVersion = stuff->minorVersion;
     }
-- 
1.8.0.1



More information about the xorg-devel mailing list