From 30e49ad9bd81e183d00c3c4e16d2c16f164121e3 Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 17 Jan 2003 07:29:01 +0000 Subject: realloc to shrink array size, git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@619 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd/board.c') 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); } } -- cgit v1.2.3