summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-22 11:25:49 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-22 11:25:49 +0800
commite345432a104c536c910947dbfb1e7ba9deb8c665 (patch)
tree397d1c5f96baaf67cc1c0da819e621e34f24fdef
parent9f0be6bfcc67a19c74339d3260953465aeba139e (diff)
downloadpttbbs-victor.symblic@1555.tar
pttbbs-victor.symblic@1555.tar.gz
pttbbs-victor.symblic@1555.tar.bz2
pttbbs-victor.symblic@1555.tar.lz
pttbbs-victor.symblic@1555.tar.xz
pttbbs-victor.symblic@1555.tar.zst
pttbbs-victor.symblic@1555.zip
clear() -> clrtobot(), fix wrong page calculationvictor.symblic@1555
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1555 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/vote.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c
index c465f063..22a22f58 100644
--- a/mbbsd/vote.c
+++ b/mbbsd/vote.c
@@ -908,7 +908,7 @@ user_vote_one(char *bname, int ind)
chosen = (char *)malloc(item_num);
memset(chosen, 0, item_num);
memset(choices, 0, sizeof(choices));
- max_page = item_num / 30 + 1;
+ max_page = (item_num - 1)/ 30 + 1;
prints("щ布よΑ絋﹚眤匡拒块ㄤ絏(A, B, C...)\n"
"Ωщ布щ %1hd 布 0 щ布, 1 ЧΘщ布, > , < \n"
@@ -923,7 +923,8 @@ user_vote_one(char *bname, int ind)
if (redo) {
int i, j;
- clear();
+ move(5, 0);
+ clrtobot();
/* 稱ぃよ猭 ぃ稱俱弄秈 memory
* τ场だщ布ぃ穦禬筁 ┮眖郎 scan */