diff options
-rw-r--r-- | games/hack/hack.tty.c | 2 | ||||
-rw-r--r-- | games/monop/getinp.c | 8 | ||||
-rw-r--r-- | games/rogue/message.c | 4 | ||||
-rw-r--r-- | games/trek/phaser.c | 8 |
4 files changed, 11 insertions, 11 deletions
diff --git a/games/hack/hack.tty.c b/games/hack/hack.tty.c index 2b5cc04b595..74dd6c581c5 100644 --- a/games/hack/hack.tty.c +++ b/games/hack/hack.tty.c @@ -87,7 +87,7 @@ gettty(){ settty(s) char *s; { clear_screen(); end_screen(); - if(s) printf(s); + if(s) printf("%s", s); (void) fflush(stdout); if(tcsetattr(0, TCSADRAIN, &inittyb) < 0) perror("Hack (settty)"); 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 diff --git a/games/rogue/message.c b/games/rogue/message.c index 8d7137b54cb..455303f35d6 100644 --- a/games/rogue/message.c +++ b/games/rogue/message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: message.c,v 1.5 2000/07/23 22:23:42 pjanzen Exp $ */ +/* $OpenBSD: message.c,v 1.6 2000/07/24 00:56:05 pjanzen Exp $ */ /* $NetBSD: message.c,v 1.5 1995/04/22 10:27:43 cgd Exp $ */ /* @@ -208,7 +208,7 @@ rgetchar() break; #ifdef UNIX_BSD4_2 case '\032': - printf(CL); + printf("%s", CL); fflush(stdout); tstp(); break; diff --git a/games/trek/phaser.c b/games/trek/phaser.c index 756ed0de880..5fd2e562f11 100644 --- a/games/trek/phaser.c +++ b/games/trek/phaser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: phaser.c,v 1.4 1999/07/31 18:48:59 pjanzen Exp $ */ +/* $OpenBSD: phaser.c,v 1.5 2000/07/24 00:56:05 pjanzen Exp $ */ /* $NetBSD: phaser.c,v 1.4 1995/04/24 12:26:02 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)phaser.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: phaser.c,v 1.4 1999/07/31 18:48:59 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: phaser.c,v 1.5 2000/07/24 00:56:05 pjanzen Exp $"; #endif #endif /* not lint */ @@ -139,13 +139,13 @@ phaser(v) { if (damaged(COMPUTER)) { - printf(Device[COMPUTER].name); + printf("%s", Device[COMPUTER].name); manual++; } else if (damaged(SRSCAN)) { - printf(Device[SRSCAN].name); + printf("%s", Device[SRSCAN].name); manual++; } if (manual) |