1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Merge pull request #88 from ailin-nemui/arraycopy

fix missing len in g_array_copy

(cherry picked from commit 47b0661e96)
This commit is contained in:
ailin-nemui 2022-06-01 18:38:15 +02:00 committed by Ailin Nemui
parent 7207a26d1e
commit 580b05a7f3

View File

@ -96,6 +96,7 @@ GArray *g_array_copy(GArray *array)
elt_size = g_array_get_element_size(array);
out = g_array_sized_new(FALSE, FALSE, elt_size, array->len);
memcpy(out->data, array->data, array->len * elt_size);
out->len = array->len;
return out;
}