From fbd07d5b6ccc4d7a01b0b944dea22688539a54a4 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Mon, 5 Feb 2018 15:37:13 +1000 Subject: [PATCH] fix bug --- 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 d0a175d..7f477ed 100644 --- a/src/www_msgs.c +++ b/src/www_msgs.c @@ -731,7 +731,7 @@ static char *www_wordwrap(char *content, int cutoff) { *last_space = '\r'; last_space = NULL; } else { - ret = (char *)realloc(ret, strlen(ret) + 2); + ret = (char *)realloc(ret, strlen(content) + 2); if (ret == NULL) { return NULL; }