diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index f72fc19b..8a8b971d 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -247,7 +247,7 @@ static void paste_buffer_join_lines(GArray *buf) *dest++ = arr[i]; } } - buf->len = dest - arr; + g_array_set_size(buf, dest - arr); } static void paste_send(void)