Skip to content
Snippets Groups Projects
Commit 8c382ee4 authored by rswindell's avatar rswindell
Browse files

Fix bug introduced Feb-28-2008 (with rev 1.39 of un_rep.cpp) where all QWK

control messages without an argument (e.g. "DROP" instead of "DROP <conf-num>")
no longer worked because the qwkcfgline() function expected the message subject
to be padded with spaces (ASCII 32) per the QWK-spec, but changes in un_rep()
included truncating trailing spaces from QWK message subjects *before* control
message parsing occurred (causing this problem).
Thanks to Dreamer for reporting this problem (using MultiMail).
parent bbb45027
No related branches found
No related tags found
No related merge requests found
......@@ -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 *
......@@ -841,7 +841,7 @@ void sbbs_t::qwkcfgline(char *buf,uint subnum)
ulong qwk=useron.qwk;
file_t f;
sprintf(str,"%.25s",buf);
sprintf(str,"%-25.25s",buf); /* Note: must be space-padded, left justified */
strupr(str);
bprintf("\1n\r\n\1b\1hQWK Control [\1c%s\1b]: \1g%s\r\n"
,subnum==INVALID_SUB ? "Mail":cfg.sub[subnum]->qwkname,str);
......
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