diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-22 10:41:12 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-22 10:41:12 +0800 |
commit | 1f08bfd426ed632d968f32dcb2ce37c802965f0e (patch) | |
tree | 59be4545b89ef4633626cb14a43ca105e9786b0e | |
parent | 1e4d4c78b043cf336ebd25634f5137a412539c8c (diff) | |
download | pttbbs-1f08bfd426ed632d968f32dcb2ce37c802965f0e.tar.gz pttbbs-1f08bfd426ed632d968f32dcb2ce37c802965f0e.tar.zst pttbbs-1f08bfd426ed632d968f32dcb2ce37c802965f0e.zip |
fix where am i's bug
git-svn-id: http://opensvn.csie.org/pttbbs/branches/ptt.linux@2347 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 19e775b8..c93fd500 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -262,7 +262,7 @@ 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; i++) + 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); |