summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-28 03:50:28 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-28 03:50:28 +0800
commitb32fc4a1d9b50c04fb02806b40d22c10175694d7 (patch)
treeea00a58653bd2c230bba5551fbff4cd4ef0682fd
parenta1e7b46ddf902759d0f20bac458db0dd1a5c5215 (diff)
downloadpttbbs-b32fc4a1d9b50c04fb02806b40d22c10175694d7.tar
pttbbs-b32fc4a1d9b50c04fb02806b40d22c10175694d7.tar.gz
pttbbs-b32fc4a1d9b50c04fb02806b40d22c10175694d7.tar.bz2
pttbbs-b32fc4a1d9b50c04fb02806b40d22c10175694d7.tar.lz
pttbbs-b32fc4a1d9b50c04fb02806b40d22c10175694d7.tar.xz
pttbbs-b32fc4a1d9b50c04fb02806b40d22c10175694d7.tar.zst
pttbbs-b32fc4a1d9b50c04fb02806b40d22c10175694d7.zip
dirty fix if bid was wrong
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@737 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 6722217d..40826a4c 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.110 2003/03/27 19:47:47 in2 Exp $ */
+/* $Id: board.c,v 1.111 2003/03/27 19:50:28 in2 Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -484,6 +484,7 @@ void load_brdbuf(void)
if( fav->b[r].attr & BRD_FAV ) // 須是 BRD_FAV
if( (fav->b[r].bid < 0) || // 分隔線
(fav->b[r].bid > 0 && // bid > 0 且該看板存在
+ fav->b[r].bid < numboards &&
bcache[fav->b[r].bid - 1].brdname[0]) )
fav->b[w++] = fav->b[r];
fav->nDatas = w;