diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-03-16 17:15:27 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-03-16 17:15:27 +0100 |
commit | dc28d06a5aad96ea7df102d909148750200fe7dc (patch) | |
tree | 6cb9436601076e1961dd648ba3ea3e3e39b34503 /FICS | |
parent | 30860fb9e1c67cca668290091040be13ebc3da0e (diff) |
Replaced sprintf() calls
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/playerdb.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 7810dfb..fc4d3a5 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -1529,29 +1529,29 @@ player_pend_print(int p, pending *pend) pend->char2)); break; case PEND_DRAW: - sprintf(tmp, "a draw.\n"); + strlcpy(tmp, "a draw.\n", sizeof tmp); break; case PEND_PAUSE: - sprintf(tmp, "to pause the clock.\n"); + strlcpy(tmp, "to pause the clock.\n", sizeof tmp); break; case PEND_ABORT: - sprintf(tmp, "to abort the game.\n"); + strlcpy(tmp, "to abort the game.\n", sizeof tmp); break; case PEND_TAKEBACK: - sprintf(tmp, "to takeback the last %d half moves.\n", - pend->param1); + snprintf(tmp, sizeof tmp, "to takeback the last %d " + "half moves.\n", pend->param1); break; case PEND_SIMUL: - sprintf(tmp, "to play a simul match.\n"); + strlcpy(tmp, "to play a simul match.\n", sizeof tmp); break; case PEND_SWITCH: - sprintf(tmp, "to switch sides.\n"); + strlcpy(tmp, "to switch sides.\n", sizeof tmp); break; case PEND_ADJOURN: - sprintf(tmp, "an adjournment.\n"); + strlcpy(tmp, "an adjournment.\n", sizeof tmp); break; case PEND_PARTNER: - sprintf(tmp, "to be bughouse partners.\n"); + strlcpy(tmp, "to be bughouse partners.\n", sizeof tmp); break; } |