Mercurial > pidgin
diff console/libgnt/gnttextview.c @ 15335:a09936753f2f
[gaim-migrate @ 18127]
We actually do want number of bytes, and not the length of the string. Thanks to elb for noticing.
I blame temporary insanity for introducing the bug in the first place.
committer: Tailor Script <tailor@pidgin.im>
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Mon, 15 Jan 2007 06:07:54 +0000 |
| parents | fa49e24d24f3 |
| children | 0eb7846f9e7e |
line wrap: on
line diff
--- a/console/libgnt/gnttextview.c Mon Jan 15 01:10:55 2007 +0000 +++ b/console/libgnt/gnttextview.c Mon Jan 15 06:07:54 2007 +0000 @@ -509,7 +509,7 @@ { GList *alllines = g_list_first(view->list); GList *list, *next, *iter, *inext; - const int text_length = text ? g_utf8_strlen(text, -1) : 0; + const int text_length = text ? strlen(text) : 0; int count = 0; for (list = view->tags; list; list = next) { GntTextTag *tag = list->data;
