diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-17 15:29:01 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-17 15:29:01 +0800 |
commit | 30e49ad9bd81e183d00c3c4e16d2c16f164121e3 (patch) | |
tree | d14304285d9d9f8f3bb6716d4a1432df6d5fcc05 /mbbsd | |
parent | 30ba9e94f8966a9769215b7db1515f32bcbee80e (diff) | |
download | pttbbs-30e49ad9bd81e183d00c3c4e16d2c16f164121e3.tar pttbbs-30e49ad9bd81e183d00c3c4e16d2c16f164121e3.tar.gz pttbbs-30e49ad9bd81e183d00c3c4e16d2c16f164121e3.tar.bz2 pttbbs-30e49ad9bd81e183d00c3c4e16d2c16f164121e3.tar.lz pttbbs-30e49ad9bd81e183d00c3c4e16d2c16f164121e3.tar.xz pttbbs-30e49ad9bd81e183d00c3c4e16d2c16f164121e3.tar.zst pttbbs-30e49ad9bd81e183d00c3c4e16d2c16f164121e3.zip |
realloc to shrink array size,
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@619 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/board.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index fa57f806..c63dc3b8 100644 --- a/mbbsd/board.c +++ b/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); } } |