aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-26 00:07:20 +0800
committerDan Winship <danw@src.gnome.org>2000-10-26 00:07:20 +0800
commit0b2c3f424be242f217d5cd24c0655daaa4fdc6b2 (patch)
tree4d66d2bb7b73bf11439e8efbd64cb9adbf188e6b /e-util
parent9dcf5fdde9ce7a8ab46a82be8416a83c104b5e85 (diff)
downloadgsoc2013-evolution-0b2c3f424be242f217d5cd24c0655daaa4fdc6b2.tar
gsoc2013-evolution-0b2c3f424be242f217d5cd24c0655daaa4fdc6b2.tar.gz
gsoc2013-evolution-0b2c3f424be242f217d5cd24c0655daaa4fdc6b2.tar.bz2
gsoc2013-evolution-0b2c3f424be242f217d5cd24c0655daaa4fdc6b2.tar.lz
gsoc2013-evolution-0b2c3f424be242f217d5cd24c0655daaa4fdc6b2.tar.xz
gsoc2013-evolution-0b2c3f424be242f217d5cd24c0655daaa4fdc6b2.tar.zst
gsoc2013-evolution-0b2c3f424be242f217d5cd24c0655daaa4fdc6b2.zip
Deal properly with URLs at the end of the buffer. (The old code would
* e-html-utils.c (e_text_to_html): Deal properly with URLs at the end of the buffer. (The old code would append a "&#0;" to the text.) svn path=/trunk/; revision=6169
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog6
-rw-r--r--e-util/e-html-utils.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index ede4147b9f..da8181f420 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-25 Dan Winship <danw@helixcode.com>
+
+ * e-html-utils.c (e_text_to_html): Deal properly with URLs at the
+ end of the buffer. (The old code would append a "&#0;" to the
+ text.)
+
2000-10-23 JP Rosevear <jpr@helixcode.com>
* e-pilot-map.c (e_pilot_map_lookup_pid): Lookup a pid by uid.
diff --git a/e-util/e-html-utils.c b/e-util/e-html-utils.c
index ff23be5533..7395f6144b 100644
--- a/e-util/e-html-utils.c
+++ b/e-util/e-html-utils.c
@@ -156,6 +156,8 @@ e_text_to_html (const char *input, unsigned int flags)
g_free (dispurl);
}
+ if (!*cur)
+ break;
unicode_get_utf8 (cur, &u);
}
if (u == (unicode_char_t)-1) {