From ed6df74f19fb816d1fd86441fe4477dfc8efed2f Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 28 Jun 2003 08:49:26 +0000 Subject: fix syntax git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@984 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/vice.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mbbsd/vice.c b/mbbsd/vice.c index 2792e47e..e774479c 100644 --- a/mbbsd/vice.c +++ b/mbbsd/vice.c @@ -1,4 +1,4 @@ -/* $Id: vice.c,v 1.8 2003/03/22 13:45:56 in2 Exp $ */ +/* $Id: vice.c,v 1.9 2003/06/28 08:49:26 kcwu Exp $ */ #include "bbs.h" #define VICE_PLAY BBSHOME "/etc/vice/vice.play" @@ -46,7 +46,7 @@ check(char tbingo[6][15], char *data) return j - 1; return 0; } -/* Ptt:showfile ran_showfile more 三者要合 */ +/* TODO Ptt:showfile ran_showfile more 三者要合 */ static int ran_showfile(int y, int x, char *filename, int maxnum) { @@ -62,7 +62,7 @@ ran_showfile(int y, int x, char *filename, int maxnum) } move(y, x); - while (fgets(buf, 511, fs)) + while (fgets(buf, sizeof(buf), fs)) prints("%s", buf); fclose(fs); @@ -84,8 +84,8 @@ vice_main() { FILE *fd; char tbingo[6][15]; - char buf_data[256] - ,serial[16], ch[2], *ptr; + char buf_data[256], + serial[16], ch[2], *ptr; int TABLE[] = {0, 10, 200, 1000, 4000, 10000, 40000, 100000, 200000}; int total = 0, money, i = 4, j = 0; -- cgit v1.2.3