diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-04-08 22:57:57 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-04-08 22:57:57 +0800 |
commit | 55e87717eb4ab1efdcba4d2622c1c98c71f871e3 (patch) | |
tree | c6667559f11f757f2bf64d033659e45748217557 | |
parent | 6d811591b38485ff561c8c8491e249e234493eb1 (diff) | |
download | pttbbs-55e87717eb4ab1efdcba4d2622c1c98c71f871e3.tar pttbbs-55e87717eb4ab1efdcba4d2622c1c98c71f871e3.tar.gz pttbbs-55e87717eb4ab1efdcba4d2622c1c98c71f871e3.tar.bz2 pttbbs-55e87717eb4ab1efdcba4d2622c1c98c71f871e3.tar.lz pttbbs-55e87717eb4ab1efdcba4d2622c1c98c71f871e3.tar.xz pttbbs-55e87717eb4ab1efdcba4d2622c1c98c71f871e3.tar.zst pttbbs-55e87717eb4ab1efdcba4d2622c1c98c71f871e3.zip |
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
-rw-r--r-- | mbbsd/announce.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |