aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-06 11:22:28 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-06 11:22:28 +0100
commite5c9689d08795346b17323faa1015cd8aca2bf74 (patch)
tree28de0e5aca625202e5218235d0c4d9fe009383b1 /FICS
parent17c1cd3ed4b48d76c81c0029ca19e60f951b4a1c (diff)
not_pawn: replaced sprintf() calls
Diffstat (limited to 'FICS')
-rw-r--r--FICS/algcheck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/algcheck.c b/FICS/algcheck.c
index 166051b..742560f 100644
--- a/FICS/algcheck.c
+++ b/FICS/algcheck.c
@@ -401,13 +401,13 @@ not_pawn(game_state_t *gs, move_t *mt, game_state_t *fakeMove, const int piece,
*/
if (f_ambig == 0) {
- sprintf(tmp, "%c", (mt->fromFile + 'a'));
+ snprintf(tmp, tmp_size, "%c", (mt->fromFile + 'a'));
strcat(mStr, tmp);
} else if (r_ambig == 0) {
- sprintf(tmp, "%d", (mt->fromRank + 1));
+ snprintf(tmp, tmp_size, "%d", (mt->fromRank + 1));
strcat(mStr, tmp);
} else {
- sprintf(tmp, "%c%d",
+ snprintf(tmp, tmp_size, "%c%d",
(mt->fromFile + 'a'),
(mt->fromRank + 1));
strcat(mStr, tmp);