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/ChangeLog | 6 ++++++ e-util/e-html-utils.c | 2 ++ 2 files changed, 8 insertions(+) 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 + + * 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.) + 2000-10-23 JP Rosevear * 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) { -- cgit v1.2.3