commit 97664635b404ef50c69c83fb57d821f44f5c3148 from: Markus Uhlin date: Sat Mar 30 13:55:20 2024 UTC Fixed format strings commit - 52f8209b1337c050ab44ed323b247643758aec57 commit + 97664635b404ef50c69c83fb57d821f44f5c3148 blob - b49f8df4b923f3bcc873c22d014470483da64604 blob + e5d219dfce86b7ff28228d0861ffbbd8b573bbba --- FICS/gameproc.c +++ 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;