diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-01-29 01:42:56 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-01-29 01:42:56 +0000 |
commit | 54745ca4cf707718694d427fe6b9a1bd45f2c625 (patch) | |
tree | b7406206aeafba589c6329502aa15e787c028a6d | |
parent | a8bc8ab1556a2e0a7d01ac3c997f51f4ac33907b (diff) | |
download | pango-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)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-0 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-2 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 6 | ||||
-rw-r--r-- | pango/pango-markup.c | 4 |
8 files changed, 44 insertions, 2 deletions
@@ -1,3 +1,9 @@ +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) + Mon Jan 28 19:41:20 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_load_font[set]): Add some diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0 index 894b8bef..2abdebad 100644 --- a/ChangeLog.pre-1-0 +++ b/ChangeLog.pre-1-0 @@ -1,3 +1,9 @@ +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) + Mon Jan 28 19:41:20 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_load_font[set]): Add some diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 894b8bef..2abdebad 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,9 @@ +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) + Mon Jan 28 19:41:20 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_load_font[set]): Add some diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2 index 894b8bef..2abdebad 100644 --- a/ChangeLog.pre-1-2 +++ b/ChangeLog.pre-1-2 @@ -1,3 +1,9 @@ +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) + Mon Jan 28 19:41:20 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_load_font[set]): Add some diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index 894b8bef..2abdebad 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,9 @@ +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) + Mon Jan 28 19:41:20 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_load_font[set]): Add some diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index 894b8bef..2abdebad 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,9 @@ +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) + Mon Jan 28 19:41:20 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_load_font[set]): Add some diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 894b8bef..2abdebad 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,9 @@ +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) + Mon Jan 28 19:41:20 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_load_font[set]): Add some 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, |