changeset 15336: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 b262452c9b63
files console/libgnt/gnttextview.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;