[PATCH] xfixes: Fix minor number in QueryVersion

Peter Hutterer peter.hutterer at who-t.net
Sun Dec 9 20:19:33 PST 2012


On Fri, Dec 07, 2012 at 07:38:55PM +0100, Daniel Martin wrote:
> 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>

applied, thanks.

Cheers,
   Peter
> ---
>  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
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list