From 4d92e6f103d533870055b64b791f3960bd7daaa0 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 20 May 2024 00:50:45 +0200 Subject: Replaced a sprintf() call --- FICS/formula.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FICS/formula.c b/FICS/formula.c index 399fce6..04b315e 100644 --- a/FICS/formula.c +++ b/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; } -- cgit v1.2.3