Skip to content

Commit

Permalink
xfixes: Fix minor number in QueryVersion
Browse files Browse the repository at this point in the history
Due to a typo the major version number was passed as minor version to
version_compare().

Regression-from: ffd4874

Signed-off-by: Daniel Martin <consume.noise@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  • Loading branch information
bartsch authored and whot committed Dec 10, 2012
1 parent 5daa442 commit 36740d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xfixes/xfixes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 36740d0

Please sign in to comment.