# HG changeset patch # User Sadrul Habib Chowdhury # Date 1168841274 0 # Node ID a09936753f2f15831d9f2dbc8e898b81cd34be35 # Parent fa49e24d24f32c1fbce28470ee3353af17787ed3 [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 diff -r fa49e24d24f3 -r a09936753f2f console/libgnt/gnttextview.c --- 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;