[glib] gmarkup: Make append_escaped_text() slightly more robust.
- From: Hans Petter <hansp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gmarkup: Make append_escaped_text() slightly more robust.
- Date: Tue, 28 Apr 2015 15:21:06 +0000 (UTC)
commit c71b16c3be17113f80693690555c453f31e5f31a
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]