diff --git a/term/paragraph.c b/term/paragraph.c index c1a7de2..e7961a8 100644 --- a/term/paragraph.c +++ b/term/paragraph.c @@ -60,7 +60,7 @@ static unsigned int extract_line( } } - if (start[i] == '\0') { + if (start[i] == '\0' && (i - delta) < line_length) { end = NULL; }