projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a5213
)
ClutterText: Fix length passed to clutter_text_buffer_set_text()
author
Owen W. Taylor
<otaylor@fishsoup.net>
Mon, 9 Apr 2012 16:09:59 +0000
(12:09 -0400)
committer
Owen W. Taylor
<otaylor@fishsoup.net>
Mon, 9 Apr 2012 20:11:49 +0000
(16:11 -0400)
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
patch
|
blob
|
history
diff --git
a/clutter/clutter-text.c
b/clutter/clutter-text.c
index
6e279b6
..
b799217
100644
(file)
--- 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);
}