Skip to content
Snippets Groups Projects
Commit 9972e325 authored by deuce's avatar deuce
Browse files

Write to the *new* line length, not the old one (doh!)

parent f7005b14
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment