summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/util_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/util_cache.c b/util/util_cache.c
index 3adb5e61..e99f52ea 100644
--- a/util/util_cache.c
+++ b/util/util_cache.c
@@ -1,4 +1,4 @@
-/* $Id: util_cache.c,v 1.6 2002/06/29 14:42:14 ptt Exp $ */
+/* $Id: util_cache.c,v 1.7 2002/06/30 03:43:55 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -307,7 +307,7 @@ userinfo_t *search_ulist(int uid) {
/*-------------------------------------------------------*/
/* .BOARDS cache */
/*-------------------------------------------------------*/
-char *fn_board=FN_BOARD;
+char *fn_board=BBSHOME"/"FN_BOARD;
boardheader_t *bcache;
static void reload_bcache() {
@@ -348,8 +348,8 @@ void reset_board(int bid)
lseek(fd, (off_t)(bid * sizeof(boardheader_t)), SEEK_SET);
read(fd, &bh , sizeof(boardheader_t));
close(fd);
- if(bh.brdname[0] && !strcmp(bh.brdname,bcache[bid-1].brdname))
- memcpy(&bcache[bid-1],&bh, sizeof(boardheader_t));
+ if(bh.brdname[0] && !strcmp(bh.brdname,bcache[bid].brdname))
+ memcpy(&bcache[bid],&bh, sizeof(boardheader_t));
}
SHM->Bbusystate = 0;
}