From a68c0b13d348b627be8ef77a67750c855d014941 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 6 Jan 2024 13:38:11 +0100 Subject: Fixed potentially insecure format strings --- FICS/comproc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'FICS/comproc.c') diff --git a/FICS/comproc.c b/FICS/comproc.c index ad8f42b..6315bc3 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -405,7 +405,7 @@ com_stats(int p, param_list param) pprintf(p, "%s is giving a simul: game%s ", parray[p1].name, (t > 1 ? "s" : "")); com_stats_andify(numbers, t, tmp, sizeof tmp); - pprintf(p, tmp); + pprintf(p, "%s", tmp); } else if (parray[p1].game >= 0) { g = parray[p1].game; @@ -444,7 +444,7 @@ com_stats(int p, param_list param) pprintf(p, "%s is observing game%s ", parray[p1].name, (t > 1 ? "s" : "")); com_stats_andify(numbers, t, tmp, sizeof tmp); - pprintf(p, tmp); + pprintf(p, "%s", tmp); } } @@ -459,13 +459,13 @@ com_stats(int p, param_list param) "total best\n"); com_stats_rating("Blitz", &parray[p1].b_stats, tmp); - pprintf(p, tmp); + pprintf(p, "%s", tmp); com_stats_rating("Standard", &parray[p1].s_stats, tmp); - pprintf(p, tmp); + pprintf(p, "%s", tmp); com_stats_rating("Lightning", &parray[p1].l_stats, tmp); - pprintf(p, tmp); + pprintf(p, "%s", tmp); com_stats_rating("Wild", &parray[p1].w_stats, tmp); - pprintf(p, tmp); + pprintf(p, "%s", tmp); } pprintf(p, "\n"); -- cgit v1.2.3