mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
fsp: Use copy_struct rather than memcpy.
This commit is contained in:
parent
bb79836cb7
commit
f1d400ab3e
@ -185,7 +185,7 @@ sort_and_display_entries(FSP_DIR *dir, const unsigned char dircolor[])
|
|||||||
if (!new_table)
|
if (!new_table)
|
||||||
continue;
|
continue;
|
||||||
table = new_table;
|
table = new_table;
|
||||||
memcpy(&table[size], &fentry, sizeof(fentry));
|
copy_struct(&table[size], &fentry);
|
||||||
size++;
|
size++;
|
||||||
}
|
}
|
||||||
qsort(table, size, sizeof(*table), compare);
|
qsort(table, size, sizeof(*table), compare);
|
||||||
|
Loading…
Reference in New Issue
Block a user