From: <sa...@us...> - 2006-09-01 06:39:16
|
Revision: 17106 http://svn.sourceforge.net/gaim/?rev=17106&view=rev Author: sadrul Date: 2006-08-31 23:38:46 -0700 (Thu, 31 Aug 2006) Log Message: ----------- wabz keeps finding bugs i left in the codes. Modified Paths: -------------- trunk/console/libgnt/gnttextview.c Modified: trunk/console/libgnt/gnttextview.c =================================================================== --- trunk/console/libgnt/gnttextview.c 2006-09-01 02:44:46 UTC (rev 17105) +++ trunk/console/libgnt/gnttextview.c 2006-09-01 06:38:46 UTC (rev 17106) @@ -1,6 +1,8 @@ #include "gnttextview.h" #include "gntutils.h" +#include <string.h> + enum { SIGS = 1, @@ -320,14 +322,15 @@ end++; start = end; gnt_text_view_next_line(view); + view->list = g_list_first(view->list); continue; } line = view->list->data; if ((end = strchr(start, '\n')) != NULL || (end = strchr(start, '\r')) != NULL) { - int l = gnt_util_onscreen_width(start, end - 1); - if (l >= widget->priv.width - line->length - 1) { + len = gnt_util_onscreen_width(start, end - 1); + if (len >= widget->priv.width - line->length - 1) { end = NULL; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |