summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-26 22:20:56 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-26 22:20:56 +0800
commitb3816a9e91b7fae01fe231daa6f4fa412628a470 (patch)
tree60b523190f256305e9aa4c03817e36b43f9cbc8d /mbbsd
parent59f9386c608a744f35fa840476576e7dfc8d8210 (diff)
downloadpttbbs-b3816a9e91b7fae01fe231daa6f4fa412628a470.tar
pttbbs-b3816a9e91b7fae01fe231daa6f4fa412628a470.tar.gz
pttbbs-b3816a9e91b7fae01fe231daa6f4fa412628a470.tar.bz2
pttbbs-b3816a9e91b7fae01fe231daa6f4fa412628a470.tar.lz
pttbbs-b3816a9e91b7fae01fe231daa6f4fa412628a470.tar.xz
pttbbs-b3816a9e91b7fae01fe231daa6f4fa412628a470.tar.zst
pttbbs-b3816a9e91b7fae01fe231daa6f4fa412628a470.zip
init new fav
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@725 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 71c9cc9c..e7228638 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.98 2003/03/26 12:59:14 in2 Exp $ */
+/* $Id: board.c,v 1.99 2003/03/26 14:20:56 victor Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -469,8 +469,10 @@ void load_brdbuf(void)
for( i = 1; i <= numboards; i++){
if(read(fd, &favrec, sizeof(char)) < 0)
break;
- if( (favrec & BRD_FAV) )
+ if( (favrec & BRD_FAV) ){
+ memset(&fav->b[fav->nDatas++], 0, sizeof(fav_board_t));
setfav(i, BRD_FAV, 1, 0);
+ }
}
close(fd);
}