From b1b378db46cf6d83a0aeaaa01341d110d7b6ed43 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/pttbbs@1343 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 259e5639..91cf274a 100644 --- a/mbbsd/bbs.c +++ b/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