[cairo-commit] test/pdf-tagged-text.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Sat Aug 19 01:23:00 UTC 2017


 test/pdf-tagged-text.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bb4ab5a8be2f66bfc03716eb37b94ec186ab1e55
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sat Aug 19 10:50:58 2017 +0930

    tests: fix bug in pdf-tagged-text that was introduced in 4790a36

diff --git a/test/pdf-tagged-text.c b/test/pdf-tagged-text.c
index 74e7968e..f7978942 100644
--- a/test/pdf-tagged-text.c
+++ b/test/pdf-tagged-text.c
@@ -137,7 +137,7 @@ layout_paragraph (cairo_t *cr)
 	    int len = prev_end - begin;
 	    char *s = malloc (len);
 	    memcpy (s, begin, len);
-	    s[0] = 0;
+	    s[len-1] = 0;
 	    paragraph_text[paragraph_num_lines++] = s;
 	    begin = prev_end + 1;
 	}


More information about the cairo-commit mailing list