aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.c
diff options
context:
space:
mode:
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 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));
}