[clutter] ClutterText: Fix length passed to clutter_text_buffer_set_text()
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] ClutterText: Fix length passed to clutter_text_buffer_set_text()
- Date: Mon, 9 Apr 2012 20:11:57 +0000 (UTC)
commit bdf4b3a33a7e2d35541422059c090c3995e95420
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon Apr 9 12:09:59 2012 -0400
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
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 6e279b6..b799217 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]