[gtk/gtk-3-24] inspector: Avoid an array overrun



commit 11568b158f00111a24667e3c0adde52f99446258
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 18 10:51:54 2020 -0500

    inspector: Avoid an array overrun
    
    Commit 3f56af373891bf6e3 added a new value to the
    GdkInputSource enum, forgetting that the inspector
    has an array of names to match this enum.
    
    Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2385

 gtk/inspector/general.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c
index c241ec8a04..48237d1ea5 100644
--- a/gtk/inspector/general.c
+++ b/gtk/inspector/general.c
@@ -511,7 +511,8 @@ add_device (GtkInspectorGeneral *gen,
     "Keyboard",
     "Touchscreen",
     "Touchpad",
-    "Trackpoint"
+    "Trackpoint",
+    "Pad"
   };
 
   name = gdk_device_get_name (device);


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