1
0
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:
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) 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);