--- a/gntentry.c Tue May 27 04:10:43 2008 +0000
+++ b/gntentry.c Fri Jun 06 03:04:05 2008 +0000
@@ -580,11 +580,13 @@
while (text && text < end && g_unichar_isspace(g_utf8_get_char(text)))
text = g_utf8_find_next_char(text, end);
- ch = g_utf8_get_char(text);
- while ((text = g_utf8_find_next_char(text, end)) != NULL && text <= end) {
- gunichar cur = g_utf8_get_char(text);
+ ch = g_utf8_get_char(text); + while ((text = g_utf8_find_next_char(text, end)) != NULL && text <= end) { + gunichar cur = g_utf8_get_char(text); return (text ? text : end);