fiddling with wordwrap

This commit is contained in:
Andrew Pamment 2018-02-28 09:17:02 +10:00
parent d087e13f61
commit c5c5faf772

View File

@ -784,7 +784,7 @@ static char *www_wordwrap(char *content, int cutoff) {
} else if (line_count == cutoff) { } else if (line_count == cutoff) {
// wrap // wrap
if (quote_line == 1) { if (quote_line == 1) {
while (content[i] != '\r') { while (i < len - 1 && content[i + 1] != '\r') {
i++; i++;
} }
last_space = NULL; last_space = NULL;