summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 17:33:22 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 17:33:22 +0800
commitc5cd856ffb6076093e0eaf8186c6f4905a105989 (patch)
tree984ac0f184cdda7cfed29fce36bd80c129fed980
parentb981ec6d10f02dea72f518b21fdc6aa733776b75 (diff)
downloadpttbbs-c5cd856ffb6076093e0eaf8186c6f4905a105989.tar
pttbbs-c5cd856ffb6076093e0eaf8186c6f4905a105989.tar.gz
pttbbs-c5cd856ffb6076093e0eaf8186c6f4905a105989.tar.bz2
pttbbs-c5cd856ffb6076093e0eaf8186c6f4905a105989.tar.lz
pttbbs-c5cd856ffb6076093e0eaf8186c6f4905a105989.tar.xz
pttbbs-c5cd856ffb6076093e0eaf8186c6f4905a105989.tar.zst
pttbbs-c5cd856ffb6076093e0eaf8186c6f4905a105989.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@218 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c4
-rw-r--r--mbbsd/vote.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 2d774033..910322d8 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.20 2002/05/25 06:28:21 ptt Exp $ */
+/* $Id: board.c,v 1.21 2002/05/25 09:33:22 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -705,7 +705,7 @@ void setutmpbid(int bid)
}
else
bcache[id-1].u=currutmp->nextbfriend;
- bcache[id-1].nuser--;
+ if(bcache[id-1].nuser>0) bcache[id-1].nuser--;
brdshm->busystate_b[id-1]=0;
}
}
diff --git a/mbbsd/vote.c b/mbbsd/vote.c
index ca288481..f25a6a2b 100644
--- a/mbbsd/vote.c
+++ b/mbbsd/vote.c
@@ -1,4 +1,4 @@
-/* $Id: vote.c,v 1.7 2002/05/13 03:20:04 ptt Exp $ */
+/* $Id: vote.c,v 1.8 2002/05/25 09:33:22 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -648,7 +648,7 @@ static int vote_maintain(char *bname) {
move(0,0);
prints("第 %d 號投票\n", x);
setbfile(buf, bname, STR_new_title);
- getdata(4, 0, "請輸入投票名稱", inbuf, sizeof(inbuf), LCECHO);
+ getdata(4, 0, "請輸入投票名稱:", inbuf, 50, LCECHO);
if(inbuf[0]=='\0')
strcpy(inbuf,"不知名的");
fp = fopen(buf, "w");
@@ -701,7 +701,7 @@ static int vote_maintain(char *bname) {
while(!aborted) {
sprintf(buf, "%c) ", num + 'A');
getdata((num % 15) + 2, (num / 15) * 40, buf,
- inbuf, sizeof(inbuf), DOECHO);
+ inbuf, 50, DOECHO);
if(*inbuf) {
fprintf(fp, "%1c) %s\n", (num+'A'), inbuf);
num++;