diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-29 22:42:14 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-29 22:42:14 +0800 |
commit | cc8039cccc2c5f3b35530b739db9c09245763b83 (patch) | |
tree | f004531cee38d1d002a39068cad04bbcf30c4fc4 /util/util_cache.c | |
parent | 85e01e834a4ece2064829e4c7ce27c9346cfbb5a (diff) | |
download | pttbbs-cc8039cccc2c5f3b35530b739db9c09245763b83.tar pttbbs-cc8039cccc2c5f3b35530b739db9c09245763b83.tar.gz pttbbs-cc8039cccc2c5f3b35530b739db9c09245763b83.tar.bz2 pttbbs-cc8039cccc2c5f3b35530b739db9c09245763b83.tar.lz pttbbs-cc8039cccc2c5f3b35530b739db9c09245763b83.tar.xz pttbbs-cc8039cccc2c5f3b35530b739db9c09245763b83.tar.zst pttbbs-cc8039cccc2c5f3b35530b739db9c09245763b83.zip |
bid errpr
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@380 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/util_cache.c')
-rw-r--r-- | util/util_cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/util_cache.c b/util/util_cache.c index 4cf0ff1f..3adb5e61 100644 --- a/util/util_cache.c +++ b/util/util_cache.c @@ -1,4 +1,4 @@ -/* $Id: util_cache.c,v 1.5 2002/06/29 13:50:46 ptt Exp $ */ +/* $Id: util_cache.c,v 1.6 2002/06/29 14:42:14 ptt Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -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].brdname)) - memcpy(&bcache[bid],&bh, sizeof(boardheader_t)); + if(bh.brdname[0] && !strcmp(bh.brdname,bcache[bid-1].brdname)) + memcpy(&bcache[bid-1],&bh, sizeof(boardheader_t)); } SHM->Bbusystate = 0; } |