[gtk/matthiasc/for-master: 3/3] inspector: Avoid an array overrun
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 3/3] inspector: Avoid an array overrun
- Date: Sat, 18 Jan 2020 16:34:25 +0000 (UTC)
commit 64254ee392feb5b01c982e9d56f39e4b7006dcbe
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]