gmarkup: Make append_escaped_text() slightly more robust.
authorHans Petter Jansson <hpj@cl.no>
Tue, 28 Apr 2015 14:50:42 +0000 (16:50 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 May 2015 02:45:52 +0000 (22:45 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=631597

glib/gmarkup.c

index 9b60387..4185ab3 100644 (file)
@@ -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);