From 1f08bfd426ed632d968f32dcb2ce37c802965f0e Mon Sep 17 00:00:00 2001 From: ptt Date: Mon, 22 Nov 2004 02:41:12 +0000 Subject: fix where am i's bug git-svn-id: http://opensvn.csie.org/pttbbs/branches/ptt.linux@2347 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3