[gtk] inspector: Avoid an array overrun



commit 92cfc0382197cced245a8461191f87b9d9e2fb80
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 4f575de4a9..5d50c67b0f 100644
--- a/gtk/inspector/general.c
+++ b/gtk/inspector/general.c
@@ -672,7 +672,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]