diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 14:55:20 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 14:55:20 +0100 |
commit | 97664635b404ef50c69c83fb57d821f44f5c3148 (patch) | |
tree | 9fe193a09ba859bd5afc8f668092b8705557bd9a /FICS | |
parent | 52f8209b1337c050ab44ed323b247643758aec57 (diff) |
Fixed format strings
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/gameproc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FICS/gameproc.c b/FICS/gameproc.c index b49f8df..e5d219d 100644 --- a/FICS/gameproc.c +++ b/FICS/gameproc.c @@ -243,8 +243,8 @@ game_ended(int g, int winner, int why) strlcat(outstr, tmp, sizeof outstr); if (beingplayed) { - pprintf_noformat(garray[g].white, outstr); - pprintf_noformat(garray[g].black, outstr); + pprintf_noformat(garray[g].white, "%s", outstr); + pprintf_noformat(garray[g].black, "%s", outstr); if (parray[garray[g].white].bell) pprintf(garray[g].white, "\007"); @@ -254,8 +254,8 @@ game_ended(int g, int winner, int why) garray[g].link = -1; // IanO: avoids recursion if (gl >= 0 && garray[gl].link >= 0) { - pprintf_noformat(garray[gl].white, outstr); - pprintf_noformat(garray[gl].black, outstr); + pprintf_noformat(garray[gl].white, "%s", outstr); + pprintf_noformat(garray[gl].black, "%s", outstr); game_ended(gl, CToggle(winner), why); } @@ -268,7 +268,7 @@ game_ended(int g, int winner, int why) if (!parray[p].i_game && !player_is_observe(p, g)) continue; - pprintf_noformat(p, outstr); + pprintf_noformat(p, "%s", outstr); pprintf_prompt(p, "%s", ""); } } @@ -1668,8 +1668,8 @@ com_simmatch(int p, param_list param) rstr[garray[g].rated], bstr[garray[g].type]); - pprintf(p, tmp); - pprintf(p1, tmp); + pprintf(p, "%s", tmp); + pprintf(p1, "%s", tmp); garray[g].white = p; garray[g].black = p1; |