Use glib qsort as qsort is not portable.

This commit is contained in:
QC 2015-07-05 09:37:35 +02:00
parent 9b83c6133f
commit dc356d81c4
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ static void menu_refilter ( MenuState *state, char **lines, menu_match_cb mmc, v
}
}
if ( sorting ) {
qsort_r ( state->line_map, j, sizeof ( int ), lev_sort, state->distance );
g_qsort_with_data ( state->line_map, j, sizeof ( int ), lev_sort, state->distance );
}
// Cleanup + bookkeeping.