From 6bb9fdd9c75657430f7ce94bb1a23ef5e74b2cac Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 13 Jan 2023 22:19:11 -0500 Subject: [PATCH] markup: Replace a g_string_insert_len call This lets us use the optimized inline call. --- glib/gmarkup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gmarkup.c b/glib/gmarkup.c index b33b220ef..30010a278 100644 --- a/glib/gmarkup.c +++ b/glib/gmarkup.c @@ -881,7 +881,7 @@ add_to_partial (GMarkupParseContext *context, } if (text_start != text_end) - g_string_insert_len (context->partial_chunk, -1, + g_string_append_len (context->partial_chunk, text_start, text_end - text_start); }