aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-06 13:38:11 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-06 13:38:11 +0100
commita68c0b13d348b627be8ef77a67750c855d014941 (patch)
treea414cbe52f2659d036ce15bb1fc3a7f252fd5ae7 /FICS
parent458b51ab2aea181c7b68f8a7c75964679721ad16 (diff)
Fixed potentially insecure format strings
Diffstat (limited to 'FICS')
-rw-r--r--FICS/comproc.c12
1 files changed, 6 insertions, 6 deletions
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");