diff options
-rw-r--r-- | mbbsd/board.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index cd7aed81..287e959e 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -334,12 +334,14 @@ load_boards(char *key) #endif } else { /* load boards of a subclass */ boardheader_t *bptr = getbcache(class_bid); - int childcount = bptr->childcount; + int childcount; int bid; if (bptr->firstchild[type] == 0 ) load_uidofgid(class_bid, type); + childcount = bptr->childcount; // Ptt: child count after load_uidofgid + nbrd = (boardstat_t *) malloc((childcount+2) * sizeof(boardstat_t)); // 預留兩個以免大量開板時掛調 for (bid = bptr->firstchild[type]; bid > 0 && @@ -841,7 +843,7 @@ choose_board(int newflag) break; case 'F': case 'f': - if (IN_SUBCLASS() && HasUserPerm(PERM_SYSOP)) { + if (HasUserPerm(PERM_SYSOP)) { getbcache(class_bid)->firstchild[cuser.uflag & BRDSORT_FLAG ? 1 : 0] = 0; brdnum = -1; } |