Fixes https://github.com/harfbuzz/harfbuzz/issues/1361
return false;
}
+ text_opts->text_len = -1;
text_opts->text = g_strdup (arg);
return true;
}
s = p;
}
+ text_opts->text_len = gs->len;
text_opts->text = g_string_free (gs, FALSE);
return true;
}
if (text) {
if (!line) line = text;
if (line_len == (unsigned int) -1)
- line_len = strlen (line);
+ line_len = text_len;
if (!line_len) {
*len = 0;
text_before = nullptr;
text_after = nullptr;
+ text_len = -1;
text = nullptr;
text_file = nullptr;
char *text_before;
char *text_after;
+ int text_len;
char *text;
char *text_file;