commit b9cd748cd9f4f46098d97efb4e0071d8970cc517 Author: Hans Petter Jansson <hpj cl no> Date: Tue Apr 28 16:50:42 2015 +0200 gmarkup: Make append_escaped_text() slightly more robust. https://bugzilla.gnome.org/show_bug.cgi?id=631597 glib/gmarkup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/glib/gmarkup.c b/glib/gmarkup.c index 9b60387..4185ab3 100644 --- a/glib/gmarkup.c +++ b/glib/gmarkup.c @@ -2157,7 +2157,7 @@ append_escaped_text (GString *str, p = text; end = text + length; - while (p != end) + while (p < end) { const gchar *next; next = g_utf8_next_char (p);