mirror of
https://github.com/brl/mutter.git
synced 2025-07-09 04:08:12 +00:00
ClutterText: Fix length passed to clutter_text_buffer_set_text()
clutter_text_buffer_set_text() expects a char count, not a byte count, so pass -1 rather than using strlen. https://bugzilla.gnome.org/show_bug.cgi?id=673783
This commit is contained in:
@ -1120,7 +1120,7 @@ clutter_text_set_markup_internal (ClutterText *self,
|
|||||||
|
|
||||||
if (text)
|
if (text)
|
||||||
{
|
{
|
||||||
clutter_text_buffer_set_text (get_buffer (self), text, strlen (text));
|
clutter_text_buffer_set_text (get_buffer (self), text, -1);
|
||||||
g_free (text);
|
g_free (text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user