From 580b05a7f312231315db72ed6f8b4695e4c2ef65 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Wed, 1 Jun 2022 18:38:15 +0200 Subject: [PATCH] Merge pull request #88 from ailin-nemui/arraycopy fix missing len in g_array_copy (cherry picked from commit 47b0661e9689d870f6ad499259368a7860880f2f) --- src/fe-text/gui-readline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 88ea254b..a53e4151 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -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; }