diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-12-11 14:22:00 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-12-11 14:22:00 +0800 |
commit | d119f8212a81355170936d54a78ad125b8003ee0 (patch) | |
tree | 06c988ea61196bdc6f9087b782edc0558249e75c /mbbsd/bbs.c | |
parent | 9b1c3c59308cfa4394628e40d354fefed09f949d (diff) | |
download | pttbbs-d119f8212a81355170936d54a78ad125b8003ee0.tar pttbbs-d119f8212a81355170936d54a78ad125b8003ee0.tar.gz pttbbs-d119f8212a81355170936d54a78ad125b8003ee0.tar.bz2 pttbbs-d119f8212a81355170936d54a78ad125b8003ee0.tar.lz pttbbs-d119f8212a81355170936d54a78ad125b8003ee0.tar.xz pttbbs-d119f8212a81355170936d54a78ad125b8003ee0.tar.zst pttbbs-d119f8212a81355170936d54a78ad125b8003ee0.zip |
merge ptt.linux again
WARNING! There are some major differences in SHM_t.
All pointers storing offsets in SHM_t have been changed
to indexes. When updating to this revision, please
rebuild the whole tree and restart the entire BBS system
(kill all users first, stop, and start).
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2374 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index ce0a2d51..a0391bdd 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -263,8 +263,8 @@ whereami(int ent, fileheader_t * fhdr, char *direct) bh = getbcache(currutmp->brc_id); root = getbcache(1); p[0] = bh; - for (i = 0; i < WHEREAMI_LEVEL && p[i]->parent != root && p[i]->parent; i++) - p[i + 1] = p[i]->parent; + for (i = 0; i < WHEREAMI_LEVEL && p[i]->parent>1; i++) + p[i + 1] = getbcache(p[i]->parent); j = i; prints("§Ú¦bþ?\n%-40.40s %.13s\n", p[j]->title + 7, p[j]->BM); for (j--; j >= 0; j--) @@ -368,7 +368,7 @@ cancelpost(fileheader_t *fh, int by_BM, char *newpath) } if(!strncasecmp(postfile.title, str_reply, 3)) len=len+4; - sprintf(postfile.title,"%-*.*s.%sª©", len, len, fh->title, currboard); + sprintf(postfile.title, "%-*.*s.%sª©", len, len, fh->title, currboard); if ((fout = fopen("innd/cancel.bntp", "a"))) { fprintf(fout, "%s\t%s\t%s\t%s\t%s\n", currboard, fh->filename, |