mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-26 22:24:51 +02:00
gmarkup: Make append_escaped_text() slightly more robust.
https://bugzilla.gnome.org/show_bug.cgi?id=631597
This commit is contained in:
parent
4e29e9a079
commit
c71b16c3be
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user