summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-05-27 17:24:04 -0400
committerBehdad Esfahbod <behdad@behdad.org>2013-05-27 17:24:04 -0400
commit6c16dfe8ad012a2551d0270a0325574e9ce3cef7 (patch)
tree3c5ce4291f88132b725c56215337b34f8aaec7a9 /pango
parentfe8d5ce6975bda30839413f71ab3e192a582300b (diff)
downloadpango-6c16dfe8ad012a2551d0270a0325574e9ce3cef7.tar.gz
Bug 700577 - Support invalid UTF-8 chars in pango_find_paragraph_boundary()
Diffstat (limited to 'pango')
-rw-r--r--pango/break.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/break.c b/pango/break.c
index abdf45bc..5f3c339a 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1747,7 +1747,7 @@ pango_find_paragraph_boundary (const gchar *text,
prev_sep = 0;
- while (p != end)
+ while (p < end)
{
if (prev_sep == '\n' ||
prev_sep == PARAGRAPH_SEPARATOR_STRING[0])