aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-utils.c
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/e-html-utils.c
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/e-html-utils.c')
-rw-r--r--e-util/e-html-utils.c2
1 files changed, 2 insertions, 0 deletions
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) {