summaryrefslogtreecommitdiff
path: root/games/monop
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2000-07-24 00:56:06 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2000-07-24 00:56:06 +0000
commit6733abcea81310bb15a823e3175256e27b978fa7 (patch)
tree5aa261e8acf353963c2db4e51d04de5d4f2f9966 /games/monop
parent5e8d9da5e485a5467767c2bf93870399f9bbd3c6 (diff)
printf() and %s pedantry, from itojun channelling kris@freebsd
Diffstat (limited to 'games/monop')
-rw-r--r--games/monop/getinp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/monop/getinp.c b/games/monop/getinp.c
index 531d9bf4d4d..75393b0a319 100644
--- a/games/monop/getinp.c
+++ b/games/monop/getinp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getinp.c,v 1.3 1998/09/20 23:36:50 pjanzen Exp $ */
+/* $OpenBSD: getinp.c,v 1.4 2000/07/24 00:56:04 pjanzen Exp $ */
/* $NetBSD: getinp.c,v 1.4 1995/04/24 12:24:20 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getinp.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: getinp.c,v 1.3 1998/09/20 23:36:50 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: getinp.c,v 1.4 2000/07/24 00:56:04 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -61,7 +61,7 @@ getinp(prompt, list)
char *sp;
for (;;) {
- printf(prompt);
+ printf("%s", prompt);
fgets(buf, sizeof(buf), stdin);
if ((feof(stdin))) {
printf("user closed input stream, quitting...\n");
@@ -79,7 +79,7 @@ getinp(prompt, list)
printf("<RETURN>");
}
else
- printf(list[i]);
+ printf("%s", list[i]);
if (list[i+1])
printf(", ");
else