summaryrefslogtreecommitdiffstats
path: root/mbbsd/card.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-29 03:35:29 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-29 03:35:29 +0800
commit747db9b7bed623d2d957aa14dbc6a505cf763be8 (patch)
tree479cf6940e240c6e6e2f8435e13d97f9269788c5 /mbbsd/card.c
parent980b8d2d2504b7299ceee845aff46c1f593e498f (diff)
downloadpttbbs-747db9b7bed623d2d957aa14dbc6a505cf763be8.tar
pttbbs-747db9b7bed623d2d957aa14dbc6a505cf763be8.tar.gz
pttbbs-747db9b7bed623d2d957aa14dbc6a505cf763be8.tar.bz2
pttbbs-747db9b7bed623d2d957aa14dbc6a505cf763be8.tar.lz
pttbbs-747db9b7bed623d2d957aa14dbc6a505cf763be8.tar.xz
pttbbs-747db9b7bed623d2d957aa14dbc6a505cf763be8.tar.zst
pttbbs-747db9b7bed623d2d957aa14dbc6a505cf763be8.zip
change getdata() constant to sizeof()
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@131 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/card.c')
-rw-r--r--mbbsd/card.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/card.c b/mbbsd/card.c
index cfa10b0c..66aeded8 100644
--- a/mbbsd/card.c
+++ b/mbbsd/card.c
@@ -1,4 +1,4 @@
-/* $Id: card.c,v 1.1 2002/03/07 15:13:48 in2 Exp $ */
+/* $Id: card.c,v 1.2 2002/04/28 19:35:28 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
@@ -357,7 +357,7 @@ static int card_double_ask() {
reload_money();
if(cuser.money < JACK)
return 0;
- getdata(20, 0, buf, buf2, 2, LCECHO);
+ getdata(20, 0, buf, buf2, sizeof(buf2), LCECHO);
if(buf2[0] == 'y' || buf2[0] == 'Y')
return 1;
return 0;
@@ -368,7 +368,7 @@ static int card_ask() {
sprintf(buf, "[ %s ]您現在共有 %d P幣, 還要加牌嗎? [y/N]",
cuser.userid, cuser.money);
- getdata(20, 0 , buf, buf2, 2, LCECHO);
+ getdata(20, 0 , buf, buf2, sizeof(buf2), LCECHO);
if(buf2[0] == 'y' || buf2[0] == 'Y')
return 1;
return 0;