summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorMathias Hasselmann <mathias.hasselmann@gmx.de>2007-09-02 18:56:21 +0000
committerMathias Hasselmann <hasselmm@src.gnome.org>2007-09-02 18:56:21 +0000
commit5c3fab4f67ff34382123ef7f11b0935b09188cc1 (patch)
tree4f057cb5d215aa4ef117b9fdb5867ddb4842d81f /pango/break.c
parent977a4155301aecaceb97df679dd7a5e29a3c7a04 (diff)
downloadpango-5c3fab4f67ff34382123ef7f11b0935b09188cc1.tar.gz
Bug 472891 – Bad consistency check in pango_get_log_attrs
2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de> Bug 472891 – Bad consistency check in pango_get_log_attrs * pango/break.c: Invert the consistency check. svn path=/trunk/; revision=2420
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/break.c b/pango/break.c
index 2ab71efe..e079a113 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1734,7 +1734,7 @@ pango_get_log_attrs (const char *text,
chars_broken += tailor_segment (range_start, range_end, range_engine, chars_broken, &analysis, log_attrs);
- if (chars_broken + 1 < attrs_len)
+ if (chars_broken + 1 > attrs_len)
g_warning ("pango_get_log_attrs: attrs_len should have been at least %d, but was %d. Expect corrupted memory.",
chars_broken + 1,
attrs_len);