From a5aaf7609c2f9c06486d3af37ae477b3440aa9d9 Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 10 Jul 2000 05:16:59 +0000 Subject: Don't call printf with no format string. --- games/hack/hack.tty.c | 2 +- games/rogue/message.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'games') diff --git a/games/hack/hack.tty.c b/games/hack/hack.tty.c index df49cfc..f86c09f 100644 --- a/games/hack/hack.tty.c +++ b/games/hack/hack.tty.c @@ -135,7 +135,7 @@ gettty(){ settty(s) char *s; { clear_screen(); end_screen(); - if(s) printf(s); + if(s) printf("%s", s); (void) fflush(stdout); if(STTY(&inittyb) < 0) perror("Hack (settty)"); diff --git a/games/rogue/message.c b/games/rogue/message.c index d9e2456..3758a54 100644 --- a/games/rogue/message.c +++ b/games/rogue/message.c @@ -205,7 +205,7 @@ rgetchar() break; #ifdef UNIX_BSD4_2 case '\032': - printf(CL); + printf("%s", CL); fflush(stdout); tstp(); break; -- cgit v1.1