From 9972e325cce004e8df6ae56bdc04bd89c193dade Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 15 Jul 2015 00:55:30 +0000 Subject: [PATCH] Write to the *new* line length, not the old one (doh!) --- src/sbbs3/wordwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/wordwrap.c b/src/sbbs3/wordwrap.c index 55d85e9dde..56b24085f2 100644 --- a/src/sbbs3/wordwrap.c +++ b/src/sbbs3/wordwrap.c @@ -546,7 +546,7 @@ char* wordwrap(char* inbuf, int len, int oldlen, BOOL handle_quotes) fprintf(stderr, "PREFIX: '%s'\nTEXT: '%s'\n\n", paragraphs[i].prefix.bytes, paragraphs[i].text); #endif - outbuf = wrap_paragraphs(paragraphs, oldlen, handle_quotes); + outbuf = wrap_paragraphs(paragraphs, len, handle_quotes); free_paragraphs(paragraphs, -1); free(paragraphs); return outbuf; -- GitLab