From 967d728886dc41ab750c08fe165bcf8dedb58c03 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 14 Nov 2003 23:39:41 +0000 Subject: git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1343 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/bbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 259e5639..91cf274a 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -592,7 +592,7 @@ do_general(int isbid) sprintf(buf,"(1-%d©Î¤£¿ï)",i+1); getdata(21, 6+7*i, buf, save_title, 3, LCECHO); posttype = save_title[0] - '1'; - if (posttype >= 0 && posttype <= 6) + if (posttype >= 0 && posttype < i) snprintf(save_title, sizeof(save_title), "[%s] ", ctype[posttype]); else @@ -628,7 +628,7 @@ do_general(int isbid) fclose((FILE*)aborted); } } - else if(posttype && (1<posttype_f)) + else if(posttype && ((1<posttype_f)) { setbnfile(genbuf, bp->brdname, "postsample", posttype); Copy(genbuf, fpath); -- cgit v1.2.3