diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-23 06:45:07 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-23 06:45:07 +0800 |
commit | 4654a3c8e9e2eff62c293117ae8ae5b38cb9c735 (patch) | |
tree | d94d19333bf2dce58bb7bc4cc366724eb0c1baae | |
parent | f7257771166c2e08f30dc3b0d0163757fcdcd395 (diff) | |
download | pttbbs-4654a3c8e9e2eff62c293117ae8ae5b38cb9c735.tar pttbbs-4654a3c8e9e2eff62c293117ae8ae5b38cb9c735.tar.gz pttbbs-4654a3c8e9e2eff62c293117ae8ae5b38cb9c735.tar.bz2 pttbbs-4654a3c8e9e2eff62c293117ae8ae5b38cb9c735.tar.lz pttbbs-4654a3c8e9e2eff62c293117ae8ae5b38cb9c735.tar.xz pttbbs-4654a3c8e9e2eff62c293117ae8ae5b38cb9c735.tar.zst pttbbs-4654a3c8e9e2eff62c293117ae8ae5b38cb9c735.zip |
seg fault of board.c
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1817 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 29d5a299..3765c854 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -283,8 +283,8 @@ load_boards(char *key) int childcount = bptr->childcount; nbrd = (boardstat_t *) malloc((childcount+2) * sizeof(boardstat_t)); // 預留兩個以免大量開版時掛調 - for (bptr = bptr->firstchild[type], brdnum=0; bptr != NULL && - brdnum < childcount+2; bptr = bptr->next[type], brdnum++) { + for (bptr = bptr->firstchild[type]; bptr != NULL && + brdnum < childcount+2; bptr = bptr->next[type]) { n = getbid(bptr); state = HasPerm(bptr); if ( !(state || GROUPOP()) || TITLE_MATCH(bptr, key) ) |