aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/matchproc.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/matchproc.c
parentfdcefa6e40e2368eee1bff84ec33021b8bf3ab0b (diff)
Added parameter 'size' to MakeFENpos() and replaced strcpy()
Diffstat (limited to 'FICS/matchproc.c')
-rw-r--r--FICS/matchproc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/matchproc.c b/FICS/matchproc.c
index 278ed99..58948a3 100644
--- a/FICS/matchproc.c
+++ b/FICS/matchproc.c
@@ -288,7 +288,8 @@ create_new_match(int white_player, int black_player, int wt, int winc, int bt,
parray[black_player].side = BLACK;
parray[black_player].promote = QUEEN;
send_boards(g);
- MakeFENpos(g, (char *)garray[g].FENstartPos);
+ MakeFENpos(g, (char *)garray[g].FENstartPos,
+ ARRAY_SIZE(garray[g].FENstartPos));
return COM_OK;
}