From 5d563c40670416e669d391672ce81a1d3f56e1bf Mon Sep 17 00:00:00 2001 From: Gareth Edwards Date: Sun, 1 Jan 2012 18:46:02 +0000 Subject: [PATCH] gschem: add zero termination to invalid keycode list. A loop in g_key_is_valid() scans a list of keycodes to see if the current one matches. Add a zero to the end of the list so that the search terminates correctly. --- gschem/src/g_keys.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/gschem/src/g_keys.c b/gschem/src/g_keys.c index a507e64..a261084 100644 --- a/gschem/src/g_keys.c +++ b/gschem/src/g_keys.c @@ -274,6 +274,7 @@ g_key_is_valid (guint keyval, GdkModifierType modifiers) GDK_First_Virtual_Screen, GDK_Prev_Virtual_Screen, GDK_Next_Virtual_Screen, GDK_Last_Virtual_Screen, GDK_Terminate_Server, GDK_AudibleBell_Enable, + 0 }; const guint *val; -- 1.7.5.4