summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-26 23:36:42 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-26 23:36:42 +0800
commitebe27d3b3e199cd9240f6beda57ecd4502fa5783 (patch)
tree61033a21725d4a4bc2151b49630e3c746f596514 /mbbsd
parent1fd7e4dd615f14877aae0c0057338f5086160f86 (diff)
downloadpttbbs-ebe27d3b3e199cd9240f6beda57ecd4502fa5783.tar
pttbbs-ebe27d3b3e199cd9240f6beda57ecd4502fa5783.tar.gz
pttbbs-ebe27d3b3e199cd9240f6beda57ecd4502fa5783.tar.bz2
pttbbs-ebe27d3b3e199cd9240f6beda57ecd4502fa5783.tar.lz
pttbbs-ebe27d3b3e199cd9240f6beda57ecd4502fa5783.tar.xz
pttbbs-ebe27d3b3e199cd9240f6beda57ecd4502fa5783.tar.zst
pttbbs-ebe27d3b3e199cd9240f6beda57ecd4502fa5783.zip
init new 16 fav
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@727 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index d06502fc..47c8ee80 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.100 2003/03/26 15:05:09 in2 Exp $ */
+/* $Id: board.c,v 1.101 2003/03/26 15:36:42 victor Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -356,6 +356,7 @@ void setfav(short bid, char attr, char mode, time_t t)
sizeof(fav_t) +
sizeof(fav_board_t) *
(16 + fav->nAllocs));
+ memset(&fav->b[fav->nDatas], 0, sizeof(fav_board_t) * 16);
fav->nAllocs += 16;
}