aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-10-08 04:33:21 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-10-08 04:33:21 +0000
commit43a351dabc5350b46cdb88f5f5bdd5797a34f570 (patch)
treed275f31981be787d3a1a97bb66f9d9cd8f974b64 /games
parentec222a71d90719dc1f91b36f1b973f66fc266089 (diff)
downloadsrc-43a351dabc5350b46cdb88f5f5bdd5797a34f570.tar.gz
src-43a351dabc5350b46cdb88f5f5bdd5797a34f570.zip
Format string paranoia.
Notes
Notes: svn path=/head/; revision=66804
Diffstat (limited to 'games')
-rw-r--r--games/cribbage/io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/cribbage/io.c b/games/cribbage/io.c
index 9384354dc1c5..b6562d7f00b3 100644
--- a/games/cribbage/io.c
+++ b/games/cribbage/io.c
@@ -111,7 +111,7 @@ msgcrd(c, brfrank, mid, brfsuit)
else
addmsg(rankname[c.rank]);
if (mid != NULL)
- addmsg(mid);
+ addmsg("%s", mid);
if (brfsuit)
addmsg("%1.1s", suitchar[c.suit]);
else
@@ -198,7 +198,7 @@ infrom(hand, n, prompt)
exit(74);
}
for (;;) {
- msg(prompt);
+ msg("%s", prompt);
if (incard(&crd)) { /* if card is full card */
if (!isone(crd, hand, n))
msg("That's not in your hand");
@@ -351,7 +351,7 @@ number(lo, hi, prompt)
int sum;
for (sum = 0;;) {
- msg(prompt);
+ msg("%s", prompt);
if (!(p = getline()) || *p == '\0') {
msg(quiet ? "Not a number" :
"That doesn't look like a number");