diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2017-08-19 10:50:58 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2017-08-19 10:52:18 +0930 |
commit | bb4ab5a8be2f66bfc03716eb37b94ec186ab1e55 (patch) | |
tree | 8ac9c65cbc3854ab09f662253ceb875a2f8ecc65 /test/pdf-tagged-text.c | |
parent | f3515954e0bc9c9ca413a84a8dd842145cec83a7 (diff) | |
download | cairo-bb4ab5a8be2f66bfc03716eb37b94ec186ab1e55.tar.gz |
tests: fix bug in pdf-tagged-text that was introduced in 4790a36
Diffstat (limited to 'test/pdf-tagged-text.c')
-rw-r--r-- | test/pdf-tagged-text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pdf-tagged-text.c b/test/pdf-tagged-text.c index 74e7968ee..f79789429 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; } |