summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-23 17:13:47 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-23 17:13:47 +0800
commitc46bba241829ea3b5974640c3804bc46d60df104 (patch)
treef5e5da86606a8e97327f60bf0eadc492e34d5048 /mbbsd
parentdd061d2c4c0f3f0a5ff7a20587ef3831157fb49d (diff)
downloadpttbbs-c46bba241829ea3b5974640c3804bc46d60df104.tar
pttbbs-c46bba241829ea3b5974640c3804bc46d60df104.tar.gz
pttbbs-c46bba241829ea3b5974640c3804bc46d60df104.tar.bz2
pttbbs-c46bba241829ea3b5974640c3804bc46d60df104.tar.lz
pttbbs-c46bba241829ea3b5974640c3804bc46d60df104.tar.xz
pttbbs-c46bba241829ea3b5974640c3804bc46d60df104.tar.zst
pttbbs-c46bba241829ea3b5974640c3804bc46d60df104.zip
gomoku machine readable log reading fix
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3205 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/gomo.c4
1 files changed, 2 insertions, 2 deletions
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;