diff src/gtkhtml.c @ 1004:69c936ca2b04

[gaim-migrate @ 1014] arg. i wonder if this works. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 18 Oct 2000 21:28:21 +0000
parents 056bd26615ea
children d50d3abb9eb7
line wrap: on
line diff
--- a/src/gtkhtml.c	Wed Oct 18 02:42:00 2000 +0000
+++ b/src/gtkhtml.c	Wed Oct 18 21:28:21 2000 +0000
@@ -2962,7 +2962,7 @@
 		static int count = 0;
 		count ++;
 		while (pos < num && (!isspace(text[pos]) || text[pos] == '\n')) pos++;
-		if (pos == num) {
+		if (pos >= num - 1) {
 			pos = num/2;
 			while (pos > 0 && (!isspace(text[pos]) || text[pos] == '\n')) pos--;
 			if (!pos) pos = num / 2;