commit 9a6f35d1144f9f50bcc138716e91666af257d439 from: Markus Uhlin date: Sun May 19 22:16:32 2024 UTC Replaced the sprintf() calls commit - 34af3b32d9fa576c5c3db34f386876db1fa2f260 commit + 9a6f35d1144f9f50bcc138716e91666af257d439 blob - 2d9914e836281028aa4da05058d4cde85f22bc1c blob + f8da9fd38b5d2b42c49b02cf551e89a99f8750a8 --- FICS/gamedb.c +++ 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)); }