Commit 0ef91c3b authored by Matthias Clasen's avatar Matthias Clasen

Avoid a buffer overrun

We were putting the '\0' behind the end. Oops.
parent 2adcb7be
Pipeline #249397 passed with stages
in 45 minutes and 44 seconds
......@@ -164,7 +164,7 @@ languages_parse_start_tag (GMarkupParseContext *ctx,
for (i = 0; i < G_N_ELEMENTS (long_names); i++)
{
if (g_str_has_prefix (display_name, long_names[i]))
display_name[strlen (long_names[i]) + 1] = '\0';
display_name[strlen (long_names[i])] = '\0';
}
......
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