aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2000-10-08 12:01:35 +0000
committerJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2000-10-08 12:01:35 +0000
commita794f331017003c7492ec20cf1aab2b6a345811b (patch)
tree86c095e822f2cffccbc87721bffd1843b288cfef
parent5e2e02c016f7ec491a39711bf6842347b037dbc6 (diff)
downloadsrc-a794f331017003c7492ec20cf1aab2b6a345811b.tar.gz
src-a794f331017003c7492ec20cf1aab2b6a345811b.zip
MFC: - String format paranoia
- Add $FreeBSD$
Notes
Notes: svn path=/stable/2.2/; revision=66818
-rw-r--r--games/cribbage/io.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/games/cribbage/io.c b/games/cribbage/io.c
index b4c2f151953c..da8180054ae3 100644
--- a/games/cribbage/io.c
+++ b/games/cribbage/io.c
@@ -32,7 +32,11 @@
*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93";
+#endif
+static const char rcsid[] =
+ "$FreeBSD$"
#endif /* not lint */
#include <ctype.h>
@@ -107,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
@@ -194,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");
@@ -347,7 +351,7 @@ number(lo, hi, prompt)
register 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");