diff --git a/src/sbbs3/rechocfg.c b/src/sbbs3/rechocfg.c index 9290416ae6c4ddda858d7a5ba4a9fa8943912533..f0869ec1779f3c5767bb52cbf57b39942e353d26 100644 --- a/src/sbbs3/rechocfg.c +++ b/src/sbbs3/rechocfg.c @@ -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 2011 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2012 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 * @@ -622,6 +622,13 @@ void read_echo_cfg() /* printf("Unrecognized line in SBBSECHO.CFG file.\n"); */ } fclose(stream); + + /* make sure we have some sane "maximum" size values here: */ + if(cfg.maxpktsize<1024) + cfg.maxpktsize=DFLT_PKT_SIZE; + if(cfg.maxbdlsize<1024) + cfg.maxbdlsize=DFLT_BDL_SIZE; + printf("\n"); }