summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-15 07:10:44 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-15 07:10:44 +0800
commit53c6a3f1f02b5675fbb026dd7fb143fd69624cd0 (patch)
treee48de7d2abe3b98c20fa13310ccda3c07b44c103
parente644996aa66e0e3f1ab9c14ef3135bfde2dd5912 (diff)
downloadpttbbs-53c6a3f1f02b5675fbb026dd7fb143fd69624cd0.tar
pttbbs-53c6a3f1f02b5675fbb026dd7fb143fd69624cd0.tar.gz
pttbbs-53c6a3f1f02b5675fbb026dd7fb143fd69624cd0.tar.bz2
pttbbs-53c6a3f1f02b5675fbb026dd7fb143fd69624cd0.tar.lz
pttbbs-53c6a3f1f02b5675fbb026dd7fb143fd69624cd0.tar.xz
pttbbs-53c6a3f1f02b5675fbb026dd7fb143fd69624cd0.tar.zst
pttbbs-53c6a3f1f02b5675fbb026dd7fb143fd69624cd0.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1337 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index eb357b50..1008afcd 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -842,7 +842,7 @@ b_posttype(int ent, fileheader_t * fhdr, char *direct)
{
boardheader_t *bp;
int i, aborted;
- char filepath[256], genbuf[6], title[5], posttype_f, posttype[33];
+ char filepath[256], genbuf[60], title[5], posttype_f, posttype[33];
if(!currmode & MODE_BOARD) return DONOTHING;
@@ -850,15 +850,15 @@ b_posttype(int ent, fileheader_t * fhdr, char *direct)
move(2,0);
clrtobot();
- move(2,0);
- outs("文章種類:");
posttype_f = bp->posttype_f;
for(i=0; i<8; i++)
{
+ move(2,0);
+ outs("文章種類:");
strncpy(genbuf, bp->posttype+i*4, 4);
genbuf[4]=0;
sprintf(title,"%d.",i+1);
- if(!getdata_buf(2,10, title, genbuf, 5, DOECHO)) break;
+ if(!getdata_buf(2,11, title, genbuf, 5, DOECHO)) break;
sprintf(posttype+i*4,"%-4.4s", genbuf);
if( posttype_f & (1<<i) )
{