From 92291381e3db9a292ec205c0810f3e0c6b358db0 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 1 Dec 2009 21:31:02 +0300 Subject: [PATCH] Ticket #1781: array index is out of bounds. Fixed array index in sort_key_name_conv_tab() function. Signed-off-by: Andrew Borodin --- src/tty/key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tty/key.c b/src/tty/key.c index 47834b14c..ab5bf234a 100644 --- a/src/tty/key.c +++ b/src/tty/key.c @@ -1254,7 +1254,7 @@ sort_key_name_conv_tab (void) if (!has_been_sorted) { size_t i; - for (i = 0; i <= key_name_conv_tab_size; i++) + for (i = 0; i < key_name_conv_tab_size; i++) key_name_conv_tab_sorted[i] = &key_name_conv_tab[i]; qsort (key_name_conv_tab_sorted,