From 46ac66dcd88edcda70d627e788b5a18f69bcfe5e Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Mon, 5 Feb 2018 15:51:44 +1000 Subject: [PATCH] oops --- src/www_msgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www_msgs.c b/src/www_msgs.c index 2e10bae..b02f4e6 100644 --- a/src/www_msgs.c +++ b/src/www_msgs.c @@ -729,7 +729,7 @@ static char *www_wordwrap(char *content, int cutoff) { // wrap if (last_space != NULL) { *last_space = '\r'; - line_count = strlen(&last_space); + line_count = strlen(&last_space[1]); last_space = NULL; } else { ret = (char *)realloc(ret, strlen(content) + 2);