summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-17 15:29:01 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-17 15:29:01 +0800
commit59c5821cdce432639e9216a42b74942c3b447d03 (patch)
tree8ad18029f94f1f4e693b551f67e21549ae71e02e
parent668ce01b03bd7e81c9cae1ce22f21df2d1c0a647 (diff)
downloadpttbbs-59c5821cdce432639e9216a42b74942c3b447d03.tar
pttbbs-59c5821cdce432639e9216a42b74942c3b447d03.tar.gz
pttbbs-59c5821cdce432639e9216a42b74942c3b447d03.tar.bz2
pttbbs-59c5821cdce432639e9216a42b74942c3b447d03.tar.lz
pttbbs-59c5821cdce432639e9216a42b74942c3b447d03.tar.xz
pttbbs-59c5821cdce432639e9216a42b74942c3b447d03.tar.zst
pttbbs-59c5821cdce432639e9216a42b74942c3b447d03.zip
realloc to shrink array size,
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@619 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c
index fa57f806..c63dc3b8 100644
--- a/pttbbs/mbbsd/board.c
+++ b/pttbbs/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.71 2003/01/17 07:14:14 kcwu Exp $ */
+/* $Id: board.c,v 1.72 2003/01/17 07:29:01 kcwu Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -547,6 +547,7 @@ load_boards(char *key)
continue;
addnewbrdstat(n, state);
}
+ nbrd = realloc(nbrd, sizeof(boardstat_t) * brdnum);
}
}