Re: [spice-gtk v2] Avoid to access array with negative numbers

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

 



On Wed, 2016-03-23 at 15:40 +0000, Frediano Ziglio wrote:

Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx>

> ---
>  src/spice-widget.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Changes from v1:
> - make parameter guint as GdkEventButton::button is guint.
> 
> diff --git a/src/spice-widget.c b/src/spice-widget.c
> index 19753e7..b1a9423 100644
> --- a/src/spice-widget.c
> +++ b/src/spice-widget.c
> @@ -1539,7 +1539,7 @@ static gboolean focus_out_event(GtkWidget
> *widget, GdkEventFocus *focus G_GNUC_U
>      return true;
>  }
>  
> -static int button_gdk_to_spice(int gdk)
> +static int button_gdk_to_spice(guint gdk)
>  {
>      static const int map[] = {
>          [ 1 ] = SPICE_MOUSE_BUTTON_LEFT,
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]