diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-19 22:53:05 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-19 22:53:05 +0800 |
commit | b0a73061e580398fb00910de6e6e37592fabe731 (patch) | |
tree | cb37071dd26f38f74478a16c26dc1b72a414c7db | |
parent | 11c514e8ff96536fee3d2e7fea089cbe1dfbe350 (diff) | |
download | pttbbs-b0a73061e580398fb00910de6e6e37592fabe731.tar pttbbs-b0a73061e580398fb00910de6e6e37592fabe731.tar.gz pttbbs-b0a73061e580398fb00910de6e6e37592fabe731.tar.bz2 pttbbs-b0a73061e580398fb00910de6e6e37592fabe731.tar.lz pttbbs-b0a73061e580398fb00910de6e6e37592fabe731.tar.xz pttbbs-b0a73061e580398fb00910de6e6e37592fabe731.tar.zst pttbbs-b0a73061e580398fb00910de6e6e37592fabe731.zip |
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@478 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/board.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 346de070..59dbd68a 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.51 2002/08/19 14:47:40 in2 Exp $ */ +/* $Id: board.c,v 1.52 2002/08/19 14:53:05 in2 Exp $ */ #include "bbs.h" #define BRC_STRLEN 15 /* Length of board name */ #define BRC_MAXSIZE 24576 @@ -468,7 +468,11 @@ load_boards(char *key) brdnum = 0; if (class_bid <= 0) { nbrdlength = numboards * sizeof(boardstat_t); +#ifdef OUTTA_CACHE nbrd = (boardstat_t *) outta_malloc(nbrdlength, 'b'); +#else + nbrd = (boardstat_t *) malloc(nbrdlength); +#endif for (i = 0; i < numboards; i++) { if ((bptr = SHM->bsorted[type][i]) == NULL) continue; @@ -487,7 +491,11 @@ load_boards(char *key) } } else { nbrdlength = bptr->childcount * sizeof(boardstat_t); +#ifdef OUTTA_CACHE nbrd = (boardstat_t *) outta_malloc(nbrdlength, 'b'); +#else + nbrd = (boardstat_t *) malloc(nbrdlength); +#endif for (bptr = bptr->firstchild[type]; bptr != (boardheader_t *) ~ 0; bptr = bptr->next[type]) { n = (int)(bptr - bcache); |