Commit 8a9675a5 authored by Sébastien Wilmet's avatar Sébastien Wilmet

BuildTools: bug fix in parser_text()

The GMarkupParser documentation says that @text is not nul-terminated.
So use g_strndup(), I suppose that @text_len is in bytes.
parent 0ff61419
......@@ -293,7 +293,7 @@ parser_text (GMarkupParseContext *context,
LatexilaBuildTools *build_tools = user_data;
const gchar *element_name = g_markup_parse_context_get_element (context);
gchar *stripped_text = g_strdup (text);
gchar *stripped_text = g_strndup (text, text_len);
stripped_text = g_strstrip (stripped_text);
if (g_str_equal (element_name, "job"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment