diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-11 13:27:06 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-11 13:27:06 +0800 |
commit | 0c0ea6ce3de183926f174cf6622601bcfe2ccfd8 (patch) | |
tree | ebb640623089e763c7027c709ae3a4294aff7098 | |
parent | 507d490c75d18d0645e39cd68d7936ae9736f5c8 (diff) | |
download | pttbbs-0c0ea6ce3de183926f174cf6622601bcfe2ccfd8.tar pttbbs-0c0ea6ce3de183926f174cf6622601bcfe2ccfd8.tar.gz pttbbs-0c0ea6ce3de183926f174cf6622601bcfe2ccfd8.tar.bz2 pttbbs-0c0ea6ce3de183926f174cf6622601bcfe2ccfd8.tar.lz pttbbs-0c0ea6ce3de183926f174cf6622601bcfe2ccfd8.tar.xz pttbbs-0c0ea6ce3de183926f174cf6622601bcfe2ccfd8.tar.zst pttbbs-0c0ea6ce3de183926f174cf6622601bcfe2ccfd8.zip |
- cross_post crash: better workaround. still waiting someone to fix it.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3666 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mail.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 2b9db957..b7485c65 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1284,9 +1284,12 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct) char genbuf2[4]; // XXX (will crash sometimes because currborad is not defined yet) - // 麻煩 in2 來修復這裡。 + // 麻煩 in2 來修復這裡: 確認轉錄為何要先 CheckPostPerm if (!currboard || currboard[0] == 0) - currboard = DEFAULT_BOARD; + { + enter_board(DEFAULT_BOARD); + } + assert(0<=ent-1 && ent-1<MAX_BOARD); if (!CheckPostPerm()) { vmsg("對不起,您目前無法轉錄文章!"); |