Skip to content
Snippets Groups Projects
Commit 8f88e55e authored by deuce's avatar deuce
Browse files

Now that wordwrap() is fixed, cols-1 is the correct value to pass.

parent e3e55c63
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ char sbbs_t::putmsg(const char *buf, long mode)
putcom("\x02\x02");
if(mode&P_WORDWRAP) {
char *wrapped;
if((wrapped=::wordwrap((char*)buf, cols, 79, /* handle_quotes: */TRUE)) == NULL)
if((wrapped=::wordwrap((char*)buf, cols-1, 79, /* handle_quotes: */TRUE)) == NULL)
errormsg(WHERE,ERR_ALLOC,"wordwrap buffer",0);
else {
truncsp_lines(wrapped);
......
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