diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-15 07:39:41 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-15 07:39:41 +0800 |
commit | b1b378db46cf6d83a0aeaaa01341d110d7b6ed43 (patch) | |
tree | f07842f81b6110328b9070d6dfd0bc3aed0fa93b /mbbsd/bbs.c | |
parent | 892419ece5855317ea3595a94cf5a1d6d1bef63e (diff) | |
download | pttbbs-b1b378db46cf6d83a0aeaaa01341d110d7b6ed43.tar pttbbs-b1b378db46cf6d83a0aeaaa01341d110d7b6ed43.tar.gz pttbbs-b1b378db46cf6d83a0aeaaa01341d110d7b6ed43.tar.bz2 pttbbs-b1b378db46cf6d83a0aeaaa01341d110d7b6ed43.tar.lz pttbbs-b1b378db46cf6d83a0aeaaa01341d110d7b6ed43.tar.xz pttbbs-b1b378db46cf6d83a0aeaaa01341d110d7b6ed43.tar.zst pttbbs-b1b378db46cf6d83a0aeaaa01341d110d7b6ed43.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1343 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 4 |
1 files 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 & bp->posttype_f)) + else if(posttype && ((1<<posttype) & bp->posttype_f)) { setbnfile(genbuf, bp->brdname, "postsample", posttype); Copy(genbuf, fpath); |