gmarkup: Make append_escaped_text() slightly more robust.

https://bugzilla.gnome.org/show_bug.cgi?id=631597
This commit is contained in:
Hans Petter Jansson 2015-04-28 16:50:42 +02:00
parent 4e29e9a079
commit c71b16c3be

View File

@ -2157,7 +2157,7 @@ append_escaped_text (GString *str,
p = text; p = text;
end = text + length; end = text + length;
while (p != end) while (p < end)
{ {
const gchar *next; const gchar *next;
next = g_utf8_next_char (p); next = g_utf8_next_char (p);