Fix bug in sort files.

This commit is contained in:
Vreixo Formoso 2008-01-04 10:11:25 +01:00
parent 5cf3abc075
commit 0fdfe05d7e

View File

@ -136,7 +136,7 @@ int filesrc_writer_compute_data_blocks(IsoImageWriter *writer)
/* sort files by weight, if needed */
if (t->sort_files) {
qsort(t->files, size, sizeof(void*), cmp_by_weight);
qsort(filelist, size, sizeof(void*), cmp_by_weight);
}
/* fill block value */