aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-20 00:50:45 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-20 00:50:45 +0200
commit4d92e6f103d533870055b64b791f3960bd7daaa0 (patch)
treea0a1c5cac67187a8da9081dfebbac1d047e037f6 /FICS
parentc11aba939e5429b7138424231396170873a11259 (diff)
Replaced a sprintf() call
Diffstat (limited to 'FICS')
-rw-r--r--FICS/formula.c2
1 files changed, 1 insertions, 1 deletions
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;
}