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

This commit is contained in:
Adrian Johnson 2017-08-19 10:50:58 +09:30
parent f3515954e0
commit bb4ab5a8be

View file

@ -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;
}