From 2c82beae5b4cf5d0d380454ba51f8f993e2bf0e2 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 4 Nov 2011 09:55:08 +0000 Subject: [PATCH] Use more sensible values for wordwrap() in putmsg() - we don't need to reserve space for quote-chars here and we're going to assume the message was originally formatted for 79 cols. --- src/sbbs3/putmsg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/putmsg.cpp b/src/sbbs3/putmsg.cpp index dd72881f90..d709e8fd09 100644 --- a/src/sbbs3/putmsg.cpp +++ b/src/sbbs3/putmsg.cpp @@ -8,7 +8,7 @@ * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -67,7 +67,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-4, cols-1, WORDWRAP_FLAG_QUOTES)) == NULL) + if((wrapped=::wordwrap((char*)buf, cols-1, 79, WORDWRAP_FLAG_QUOTES)) == NULL) errormsg(WHERE,ERR_ALLOC,"wordwrap buffer",0); else str=wrapped; -- GitLab