aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-20 00:16:32 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-20 00:16:32 +0200
commit9a6f35d1144f9f50bcc138716e91666af257d439 (patch)
treee2a10ae4939c6c63efe4e4ab49cd8008ab4b4f4d
parent34af3b32d9fa576c5c3db34f386876db1fa2f260 (diff)
Replaced the sprintf() calls
-rw-r--r--FICS/gamedb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index 2d9914e..f8da9fd 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -1112,12 +1112,12 @@ ReadOneV1Move(FILE *fp, move_t *m)
m->doublePawn = -1;
if (m->pieceCaptured) {
- sprintf(m->algString, "%cx%c%d",
+ msnprintf(m->algString, sizeof m->algString, "%cx%c%d",
('a' + m->fromFile),
('a' + m->toFile),
(m->toRank + 1));
} else {
- sprintf(m->algString, "%c%d",
+ msnprintf(m->algString, sizeof m->algString, "%c%d",
('a' + m->toFile),
(m->toRank + 1));
}