From 0b2c3f424be242f217d5cd24c0655daaa4fdc6b2 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 25 Oct 2000 16:07:20 +0000 Subject: 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 "�" to the text.) svn path=/trunk/; revision=6169 --- e-util/e-html-utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'e-util/e-html-utils.c') 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) { -- cgit v1.2.3