aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.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/gamedb.c
parentfdcefa6e40e2368eee1bff84ec33021b8bf3ab0b (diff)
Added parameter 'size' to MakeFENpos() and replaced strcpy()
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r--FICS/gamedb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index 55330cb..99f7a85 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -199,9 +199,9 @@ game_finish(int g)
}
PUBLIC void
-MakeFENpos(int g, char *FEN)
+MakeFENpos(int g, char *FEN, size_t size)
{
- strcpy(FEN, boardToFEN(g));
+ mstrlcpy(FEN, boardToFEN(g), size);
}
PUBLIC char *