This commit is contained in:
Andrew Pamment 2018-02-05 15:37:13 +10:00
parent b3ebf2f3a7
commit fbd07d5b6c

View File

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