mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
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:
parent
ca8a009126
commit
92291381e3
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user