diff --git a/src/sbbs3/wordwrap.c b/src/sbbs3/wordwrap.c
index 55d85e9dde257a11364bb1cf344dc3491533d106..56b24085f2f099c4360385ade0655efe8c663094 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;