summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 21:10:14 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 21:10:14 +0800
commit2233fc93a52bae18a4e1ad415fee310b9e026160 (patch)
tree5e5e8072c440c34ff90f83039f2f08bae5609dc6
parent49d44a86c04c2f96038880c3bd98abf19ec27d5b (diff)
downloadpttbbs-2233fc93a52bae18a4e1ad415fee310b9e026160.tar
pttbbs-2233fc93a52bae18a4e1ad415fee310b9e026160.tar.gz
pttbbs-2233fc93a52bae18a4e1ad415fee310b9e026160.tar.bz2
pttbbs-2233fc93a52bae18a4e1ad415fee310b9e026160.tar.lz
pttbbs-2233fc93a52bae18a4e1ad415fee310b9e026160.tar.xz
pttbbs-2233fc93a52bae18a4e1ad415fee310b9e026160.tar.zst
pttbbs-2233fc93a52bae18a4e1ad415fee310b9e026160.zip
fix pointer crash bug due to my last modify
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2317 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/go.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/mbbsd/go.c b/mbbsd/go.c
index 0cff7430..e82c913a 100644
--- a/mbbsd/go.c
+++ b/mbbsd/go.c
@@ -1414,9 +1414,9 @@ GoBot(void)
{
go[(int)pool[i].x][(int)pool[i].y] = me;
GO_examboard(&gd, he);
- memcpy(&tmp_go[me - 1], &go, sizeof(gd.l));
- memcpy(&tmp_l[me - 1], &l, sizeof(gd.l));
- memcpy(&tmp_ml[me - 1], &ml, sizeof(gd.ml));
+ memcpy(&tmp_go[me - 1], go, sizeof(gd.l));
+ memcpy(&tmp_l[me - 1], l, sizeof(gd.l));
+ memcpy(&tmp_ml[me - 1], ml, sizeof(gd.ml));
tmp_lib[me - 1] = lib;
tmp_mik[me - 1] = mik;
tmp_mjk[me - 1] = mjk;
@@ -1424,9 +1424,9 @@ GoBot(void)
tmp_hjk[me - 1] = hjk;
me = he;
he = 3 - me;
- memcpy(&go, &tmp_go[me - 1], sizeof(gd.l));
- memcpy(&l, &tmp_l[me - 1], sizeof(gd.l));
- memcpy(&ml, &tmp_ml[me - 1], sizeof(gd.ml));
+ memcpy(go, &tmp_go[me - 1], sizeof(gd.l));
+ memcpy(l, &tmp_l[me - 1], sizeof(gd.l));
+ memcpy(ml, &tmp_ml[me - 1], sizeof(gd.ml));
lib = tmp_lib[me - 1];
mik = tmp_mik[me - 1];
mjk = tmp_mjk[me - 1];
@@ -1455,9 +1455,9 @@ GoBot(void)
outs(bw_chess[me - 1]);
go[(int)mv.x][(int)mv.y] = me;
GO_examboard(&gd, he);
- memcpy(&tmp_go[me - 1], &go, sizeof(gd.l));
- memcpy(&tmp_l[me - 1], &l, sizeof(gd.l));
- memcpy(&tmp_ml[me - 1], &ml, sizeof(gd.ml));
+ memcpy(&tmp_go[me - 1], go, sizeof(gd.l));
+ memcpy(&tmp_l[me - 1], l, sizeof(gd.l));
+ memcpy(&tmp_ml[me - 1], ml, sizeof(gd.ml));
tmp_lib[me - 1] = lib;
tmp_mik[me - 1] = mik;
tmp_mjk[me - 1] = mjk;
@@ -1465,9 +1465,9 @@ GoBot(void)
tmp_hjk[me - 1] = hjk;
me = he;
he = 3 - me;
- memcpy(&go, &tmp_go[me - 1], sizeof(gd.l));
- memcpy(&l, &tmp_l[me - 1], sizeof(gd.l));
- memcpy(&ml, &tmp_ml[me - 1], sizeof(gd.ml));
+ memcpy(go, &tmp_go[me - 1], sizeof(gd.l));
+ memcpy(l, &tmp_l[me - 1], sizeof(gd.l));
+ memcpy(ml, &tmp_ml[me - 1], sizeof(gd.ml));
lib = tmp_lib[me - 1];
mik = tmp_mik[me - 1];
mjk = tmp_mjk[me - 1];