diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-20 00:50:45 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-20 00:50:45 +0200 |
commit | 4d92e6f103d533870055b64b791f3960bd7daaa0 (patch) | |
tree | a0a1c5cac67187a8da9081dfebbac1d047e037f6 /FICS | |
parent | c11aba939e5429b7138424231396170873a11259 (diff) |
Replaced a sprintf() call
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/formula.c | 2 |
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; } |