commit 4d92e6f103d533870055b64b791f3960bd7daaa0 from: Markus Uhlin date: Sun May 19 22:50:45 2024 UTC Replaced a sprintf() call commit - c11aba939e5429b7138424231396170873a11259 commit + 4d92e6f103d533870055b64b791f3960bd7daaa0 blob - 399fce664518cd04d6d8d465bbe07f820e542fe2 blob + 04b315ea3c5b74a81a26790fac0cd3ea122d2b81 --- FICS/formula.c +++ FICS/formula.c @@ -605,7 +605,7 @@ ExplainFormula(game *g, textlist **clauses) continue; dummy_index = 0; CheckFormula(g, i, &dummy_index, OPTYPE_NONE, &value, 1); - sprintf(txt, "%d", value); + snprintf(txt, sizeof txt, "%d", value); SaveTextListEntry(Cur, txt, i); Cur = &(*Cur)->next; }