Fix off-by-one bug in parameter check.

Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>

        * gtk/gtkclist.c: Fix off-by-one bug in parameter
        check.
This commit is contained in:
GMT 1999 Tony Gale 1999-11-10 17:28:59 +00:00 committed by Tony Gale
parent 95d923f661
commit 57d2bf74a6
8 changed files with 36 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
* gtk/gtkclist.c: Fix off-by-one bug in parameter
check.
Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()

View File

@ -1,3 +1,8 @@
Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
* gtk/gtkclist.c: Fix off-by-one bug in parameter
check.
Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()

View File

@ -1,3 +1,8 @@
Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
* gtk/gtkclist.c: Fix off-by-one bug in parameter
check.
Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()

View File

@ -1,3 +1,8 @@
Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
* gtk/gtkclist.c: Fix off-by-one bug in parameter
check.
Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()

View File

@ -1,3 +1,8 @@
Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
* gtk/gtkclist.c: Fix off-by-one bug in parameter
check.
Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()

View File

@ -1,3 +1,8 @@
Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
* gtk/gtkclist.c: Fix off-by-one bug in parameter
check.
Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()

View File

@ -1,3 +1,8 @@
Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
* gtk/gtkclist.c: Fix off-by-one bug in parameter
check.
Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()

View File

@ -7862,7 +7862,7 @@ gtk_clist_set_button_actions (GtkCList *clist,
g_return_if_fail (clist != NULL);
g_return_if_fail (GTK_IS_CLIST (clist));
if (button <= MAX_BUTTON)
if (button < MAX_BUTTON)
{
if (gdk_pointer_is_grabbed () || GTK_WIDGET_HAS_GRAB (clist))
{