summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-01-29 01:42:56 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-01-29 01:42:56 +0000
commit54745ca4cf707718694d427fe6b9a1bd45f2c625 (patch)
treeb7406206aeafba589c6329502aa15e787c028a6d /pango
parenta8bc8ab1556a2e0a7d01ac3c997f51f4ac33907b (diff)
downloadpango-54745ca4cf707718694d427fe6b9a1bd45f2c625.tar.gz
Fix problem with detected root node. (Based on patch from Matthias Clasen,
Mon Jan 28 20:23:59 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-markup.c (pango_parse_markup): Fix problem with detected root node. (Based on patch from Matthias Clasen, #69600)
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-markup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index 0ce40c68..b57ee136 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -617,8 +617,8 @@ pango_parse_markup (const char *markup_text,
while (p != end && isspace (*p))
++p;
- if (strncmp (p, "<markup>", end - p) == 0)
- needs_root = FALSE;
+ if (end - p >= 8 && strncmp (p, "<markup>", 8) == 0)
+ needs_root = FALSE;
if (needs_root)
if (!g_markup_parse_context_parse (context,