summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-28 16:49:26 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-28 16:49:26 +0800
commited6df74f19fb816d1fd86441fe4477dfc8efed2f (patch)
tree4871b2197b794726f5ddab413d892585fa89d88e /mbbsd
parent6a035e86eccd6ff1073c9d2e0feed3cf9d6b149c (diff)
downloadpttbbs-ed6df74f19fb816d1fd86441fe4477dfc8efed2f.tar
pttbbs-ed6df74f19fb816d1fd86441fe4477dfc8efed2f.tar.gz
pttbbs-ed6df74f19fb816d1fd86441fe4477dfc8efed2f.tar.bz2
pttbbs-ed6df74f19fb816d1fd86441fe4477dfc8efed2f.tar.lz
pttbbs-ed6df74f19fb816d1fd86441fe4477dfc8efed2f.tar.xz
pttbbs-ed6df74f19fb816d1fd86441fe4477dfc8efed2f.tar.zst
pttbbs-ed6df74f19fb816d1fd86441fe4477dfc8efed2f.zip
fix syntax
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@984 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/vice.c10
1 files 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;