From c46bba241829ea3b5974640c3804bc46d60df104 Mon Sep 17 00:00:00 2001 From: scw Date: Fri, 23 Sep 2005 09:13:47 +0000 Subject: gomoku machine readable log reading fix git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3205 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/gomo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c index c7e14923..d1c1bf16 100644 --- a/mbbsd/gomo.c +++ b/mbbsd/gomo.c @@ -467,11 +467,11 @@ static int gomo_loadlog(FILE *fp, ChessInfo *info) /* "[ 1]¡´ ==> H8 [ 2]¡³ ==> H9" */ gomo_step_t step = { CHESS_STEP_NORMAL }; int c, r; - const char *p; + const char *p = buf; int i; for(i=0; i<2; i++) { - p = strchr(buf, '>'); + p = strchr(p, '>'); if (p == NULL) break; -- cgit v1.2.3