[Spice-devel] [spice-common PATCH] region.c: fix region_bounds_intersects

Hans de Goede hdegoede at redhat.com
Tue Apr 2 05:56:08 PDT 2013


ACK.

On 04/02/2013 02:51 PM, Yonit Halperin wrote:
> region_bounds_intersects mistakingly ignored one of the input regions,
> and compared the other region to itself.
> ---
>   common/region.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/region.c b/common/region.c
> index cd9ade0..14a27ed 100644
> --- a/common/region.c
> +++ b/common/region.c
> @@ -420,7 +420,7 @@ int region_bounds_intersects(const QRegion *rgn1, const QRegion *rgn2)
>       pixman_box32_t *extents1, *extents2;
>
>       extents1 = pixman_region32_extents((pixman_region32_t *)rgn1);
> -    extents2 = pixman_region32_extents((pixman_region32_t *)rgn1);
> +    extents2 = pixman_region32_extents((pixman_region32_t *)rgn2);
>
>       return EXTENTCHECK(extents1, extents2);
>   }
>


More information about the Spice-devel mailing list