1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #88 from ailin-nemui/arraycopy

fix missing len in g_array_copy
This commit is contained in:
ailin-nemui 2022-06-01 18:38:15 +02:00 committed by GitHub
commit 47b0661e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}