Ticket #1781: array index is out of bounds.

Fixed array index in sort_key_name_conv_tab() function.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2009-12-01 21:31:02 +03:00
parent ca8a009126
commit 92291381e3

View File

@ -1254,7 +1254,7 @@ sort_key_name_conv_tab (void)
if (!has_been_sorted) { if (!has_been_sorted) {
size_t i; 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]; key_name_conv_tab_sorted[i] = &key_name_conv_tab[i];
qsort (key_name_conv_tab_sorted, qsort (key_name_conv_tab_sorted,