mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -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)
|
||||
continue;
|
||||
table = new_table;
|
||||
memcpy(&table[size], &fentry, sizeof(fentry));
|
||||
copy_struct(&table[size], &fentry);
|
||||
size++;
|
||||
}
|
||||
qsort(table, size, sizeof(*table), compare);
|
||||
|
Loading…
Reference in New Issue
Block a user