aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gameproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-07-06 22:30:34 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-07-06 22:30:34 +0200
commit06f9395a1a3eb13dcdcf8ca1ae48bceb2a2b2e64 (patch)
treeb167ac2e9ccc0cc0c352d44511da27fc6d0997b9 /FICS/gameproc.c
parentfdcefa6e40e2368eee1bff84ec33021b8bf3ab0b (diff)
Added parameter 'size' to MakeFENpos() and replaced strcpy()
Diffstat (limited to 'FICS/gameproc.c')
-rw-r--r--FICS/gameproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/gameproc.c b/FICS/gameproc.c
index 8dc82f6..b4a538e 100644
--- a/FICS/gameproc.c
+++ b/FICS/gameproc.c
@@ -481,7 +481,7 @@ process_move(int p, char *command)
result = execute_move(&garray[g].game_state, &move, 1);
move.atTime = now; // XXX
move.tookTime = 0;
- MakeFENpos(g, (char *)move.FENpos);
+ MakeFENpos(g, (char *)move.FENpos, ARRAY_SIZE(move.FENpos));
garray[g].examMoveList[garray[g].numHalfMoves - 1] = move;
/*
@@ -693,7 +693,7 @@ process_move(int p, char *command)
}
#endif
- MakeFENpos(g, (char *)move.FENpos);
+ MakeFENpos(g, (char *)move.FENpos, ARRAY_SIZE(move.FENpos));
garray[g].moveList[garray[g].numHalfMoves - 1] = move;
}