aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-31 21:22:50 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-31 21:22:50 +0100
commit09375d0dc634631161a2ed061d27a27bb8adf8ae (patch)
tree151f629b7398193e1d3c549be673469347bffea7
parenteaa606a83cf0708f5a7204dfe5f6f907b0a983b3 (diff)
Replaced a sprintf() call with snprintf()
-rw-r--r--FICS/playerdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index dbc36a8..19c42c9 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -1501,7 +1501,7 @@ player_pend_print(int p, pending *pend)
switch (pend->type) {
case PEND_MATCH:
- sprintf(tmp, "%s.", game_str(pend->param5,
+ snprintf(tmp, sizeof tmp, "%s.", game_str(pend->param5,
(pend->param1 * 60),
pend->param2,
(pend->param3 * 60),