summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-10-08 04:33:21 +0000
committerkris <kris@FreeBSD.org>2000-10-08 04:33:21 +0000
commit7633d05307eb01bbef0e91da6724b73d1a25f8c5 (patch)
tree336f80581332d71cdb9f5daf41cb5e865f7e0a19 /games
parent003596e09842fe00c72052b07fb5a0f0e5fac8f0 (diff)
downloadFreeBSD-src-7633d05307eb01bbef0e91da6724b73d1a25f8c5.zip
FreeBSD-src-7633d05307eb01bbef0e91da6724b73d1a25f8c5.tar.gz
Format string paranoia.
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 9384354..b6562d7 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");
OpenPOWER on IntegriCloud