From eb23a7b58d02524e23705cbc62b0bcf078a738c4 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 30 Apr 2008 04:16:59 +0000 Subject: - voteboard: hint on how to join voting git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4263 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/voteboard.c | 7 ++++--- 1 file 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)); -- cgit v1.2.3