diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-30 12:16:59 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-30 12:16:59 +0800 |
commit | eb23a7b58d02524e23705cbc62b0bcf078a738c4 (patch) | |
tree | 488536252c238b294979a70f77c013c97c8d846d /mbbsd | |
parent | f92d5deaedcfbd49a594a8237eac901fadb57694 (diff) | |
download | pttbbs-eb23a7b58d02524e23705cbc62b0bcf078a738c4.tar pttbbs-eb23a7b58d02524e23705cbc62b0bcf078a738c4.tar.gz pttbbs-eb23a7b58d02524e23705cbc62b0bcf078a738c4.tar.bz2 pttbbs-eb23a7b58d02524e23705cbc62b0bcf078a738c4.tar.lz pttbbs-eb23a7b58d02524e23705cbc62b0bcf078a738c4.tar.xz pttbbs-eb23a7b58d02524e23705cbc62b0bcf078a738c4.tar.zst pttbbs-eb23a7b58d02524e23705cbc62b0bcf078a738c4.zip |
- voteboard: hint on how to join voting
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4263 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/voteboard.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c index 29c7369a..a247095e 100644 --- a/mbbsd/voteboard.c +++ b/mbbsd/voteboard.c @@ -195,9 +195,9 @@ do_voteboard(int type) { fileheader_t votefile; char topic[100]; - char title[80]; - char genbuf[1024]; - char fpath[80]; + char title[STRLEN]; + char genbuf[2048]; + char fpath[PATHLEN]; FILE *fp; int temp; @@ -381,6 +381,7 @@ do_voteboard(int type) "看板: ", currboard, "標題: ", title, "時間: ", ctime4(&now)); + fprintf(fp, ANSI_COLOR(1;33) "若想加入連署請按 y 回應" ANSI_RESET "\n\n"); fprintf(fp, "%s\n", genbuf); fclose(fp); strlcpy(votefile.owner, cuser.userid, sizeof(votefile.owner)); |