From 55e87717eb4ab1efdcba4d2622c1c98c71f871e3 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 8 Apr 2006 14:57:57 +0000 Subject: fix bug, should not access out of board array git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3340 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/announce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 9c6c4ca3..befaa1aa 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -1077,7 +1077,7 @@ a_menu(const char *maintitle, const char *path, int lastlevel, char *trans_buffe 須等該資料寫入 .DIR 內再 implement才有效率. */ if( !lastlevel && !HasUserPerm(PERM_SYSOP) && - !is_BM_cache(currbid) && dashd(fname) ) + (currbid==0 || !is_BM_cache(currbid)) && dashd(fname) ) vmsg("只有板主才可以拷貝目錄唷!"); else a_copyitem(fname, me.header[me.now - me.page].title, 0, 1); -- cgit v1.2.3