summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-16 13:46:30 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-16 13:46:30 +0800
commit54d8788cfca8c5a9407e8330f344ff628d3e5ab1 (patch)
tree917ef9f77afba29772a98577ad6310af204eb115 /mbbsd
parente05bdcb86de35af031d6c5e0e3b35619b7ad42db (diff)
downloadpttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar
pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.gz
pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.bz2
pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.lz
pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.xz
pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.zst
pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.zip
push_bottom bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1772 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 16eff6d4..14d5d0d2 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -656,14 +656,13 @@ setbottomtotal(int bid)
boardheader_t *bh = getbcache(bid);
char genbuf[256];
int n;
+
+ if(!bh->brdname[0]) return;
setbfile(genbuf, bh->brdname, ".DIR.bottom");
n = get_num_records(genbuf, sizeof(fileheader_t));
if(n>5)
{
- char log[512]; // temp to debug for a while
unlink(genbuf);
- sprintf(log, "%d %s bottom:%d num:%d\n", bid, bh->brdname, SHM->n_bottom[bid-1], n );
- log_file("push_bottom.fix", genbuf, 1);
SHM->n_bottom[bid-1]=0;
}
else