summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-24 23:52:33 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-24 23:52:33 +0800
commite43261562e928585ac73bd333dae548687d451ec (patch)
tree0c6ad3e95784599f6d2e333df3dc53177e0db52a
parent5f011cddea210cbd8733347e43de7d80eb52e447 (diff)
downloadpttbbs-e43261562e928585ac73bd333dae548687d451ec.tar
pttbbs-e43261562e928585ac73bd333dae548687d451ec.tar.gz
pttbbs-e43261562e928585ac73bd333dae548687d451ec.tar.bz2
pttbbs-e43261562e928585ac73bd333dae548687d451ec.tar.lz
pttbbs-e43261562e928585ac73bd333dae548687d451ec.tar.xz
pttbbs-e43261562e928585ac73bd333dae548687d451ec.tar.zst
pttbbs-e43261562e928585ac73bd333dae548687d451ec.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@191 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 42addecf..ec9a44ab 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.6 2002/05/13 03:20:04 ptt Exp $ */
+/* $Id: board.c,v 1.7 2002/05/24 15:52:33 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -386,7 +386,7 @@ int class_bid = 0;
static int yank_flag = 1;
static void load_uidofgid(const int gid, const int type){
boardheader_t *bptr,*currbptr;
- int n;
+ int n, childcount=0;
currbptr = &bcache[gid-1];
for(n=0;n<numboards;n++)
{
@@ -401,9 +401,11 @@ static void load_uidofgid(const int gid, const int type){
currbptr->next[type]=bptr;
currbptr->parent=&bcache[gid-1];
}
+ childcount++;
currbptr=bptr;
}
}
+ bcache[gid-1].childcount=childcount;
if(currbptr == &bcache[gid-1])
currbptr->firstchild[type]=(boardheader_t *) ~0;
else