diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-15 07:10:44 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-15 07:10:44 +0800 |
commit | 6dbe32ef407d6fc21cc0117decc0aea0f362741b (patch) | |
tree | f8b63c94fa533b19100e6da4b98bd5187b89c303 | |
parent | 1af48c1b68cb405832092d296bb095581b1cf2d9 (diff) | |
download | pttbbs-6dbe32ef407d6fc21cc0117decc0aea0f362741b.tar pttbbs-6dbe32ef407d6fc21cc0117decc0aea0f362741b.tar.gz pttbbs-6dbe32ef407d6fc21cc0117decc0aea0f362741b.tar.bz2 pttbbs-6dbe32ef407d6fc21cc0117decc0aea0f362741b.tar.lz pttbbs-6dbe32ef407d6fc21cc0117decc0aea0f362741b.tar.xz pttbbs-6dbe32ef407d6fc21cc0117decc0aea0f362741b.tar.zst pttbbs-6dbe32ef407d6fc21cc0117decc0aea0f362741b.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1337 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index eb357b50..1008afcd 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/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) ) { |