From 747db9b7bed623d2d957aa14dbc6a505cf763be8 Mon Sep 17 00:00:00 2001 From: in2 Date: Sun, 28 Apr 2002 19:35:29 +0000 Subject: change getdata() constant to sizeof() git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@131 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/othello.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mbbsd/othello.c') diff --git a/mbbsd/othello.c b/mbbsd/othello.c index 47b8cef3..888a483e 100644 --- a/mbbsd/othello.c +++ b/mbbsd/othello.c @@ -1,4 +1,4 @@ -/* $Id: othello.c,v 1.1 2002/03/07 15:13:48 in2 Exp $ */ +/* $Id: othello.c,v 1.2 2002/04/28 19:35:29 in2 Exp $ */ #include #include #include @@ -485,7 +485,8 @@ static int choose() { prints("(2) 嬰兒\n"); /* 想 3 步 */ prints("(3) 小孩\n"); /* 想 4 步 */ do { - getdata(4, 0, "請選擇一個對象和您對打:(1~5)", thinkstep, 2, LCECHO); + getdata(4, 0, "請選擇一個對象和您對打:(1~5)", + thinkstep, sizeof(thinkstep), LCECHO); } while(thinkstep[0] < '1' || thinkstep[0] > '3'); clear(); switch(thinkstep[0]) { -- cgit v1.2.3