1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

fsp: Use copy_struct rather than memcpy.

This commit is contained in:
Kalle Olavi Niemitalo 2007-03-05 21:27:32 +02:00 committed by Kalle Olavi Niemitalo
parent bb79836cb7
commit f1d400ab3e

View File

@ -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);