From 0c0ea6ce3de183926f174cf6622601bcfe2ccfd8 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 11 Dec 2007 05:27:06 +0000 Subject: - 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 --- mbbsd/mail.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mbbsd/mail.c') 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