diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2012-04-09 12:09:59 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2012-04-09 12:13:52 -0400 |
commit | 2acd4f2d4d7aa0d0351484e70fac85f5c8d62a50 (patch) | |
tree | 4f128eb198734cf262e64ea84059d65cc0ef4987 | |
parent | bdb1109792aaca455628168e85e40f5ae046cddc (diff) | |
download | clutter-2acd4f2d4d7aa0d0351484e70fac85f5c8d62a50.tar.gz |
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
-rw-r--r-- | clutter/clutter-text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index 6e279b6a1..b799217c2 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -1120,7 +1120,7 @@ clutter_text_set_markup_internal (ClutterText *self, 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); } |