diff options
-rw-r--r-- | contrib/telnet/libtelnet/read_password.c | 6 | ||||
-rw-r--r-- | crypto/telnet/libtelnet/read_password.c | 6 | ||||
-rw-r--r-- | games/hack/hack.tty.c | 2 | ||||
-rw-r--r-- | games/rogue/message.c | 2 |
4 files changed, 12 insertions, 4 deletions
diff --git a/contrib/telnet/libtelnet/read_password.c b/contrib/telnet/libtelnet/read_password.c index 4676ed3..f977290 100644 --- a/contrib/telnet/libtelnet/read_password.c +++ b/contrib/telnet/libtelnet/read_password.c @@ -32,7 +32,11 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)read_password.c 8.3 (Berkeley) 5/30/95"; +#endif +static const char rcsid[] = + "$FreeBSD$"; #endif /* not lint */ /* @@ -101,7 +105,7 @@ local_des_read_pw_string(s,max,prompt,verify) if (ioctl(0,TIOCSETP,(char *)&tty_state) == -1) return -1; while (!ok) { - (void) printf(prompt); + (void) printf("%s", prompt); (void) fflush(stdout); while (!fgets(s, max, stdin)); diff --git a/crypto/telnet/libtelnet/read_password.c b/crypto/telnet/libtelnet/read_password.c index 4676ed3..f977290 100644 --- a/crypto/telnet/libtelnet/read_password.c +++ b/crypto/telnet/libtelnet/read_password.c @@ -32,7 +32,11 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)read_password.c 8.3 (Berkeley) 5/30/95"; +#endif +static const char rcsid[] = + "$FreeBSD$"; #endif /* not lint */ /* @@ -101,7 +105,7 @@ local_des_read_pw_string(s,max,prompt,verify) if (ioctl(0,TIOCSETP,(char *)&tty_state) == -1) return -1; while (!ok) { - (void) printf(prompt); + (void) printf("%s", prompt); (void) fflush(stdout); while (!fgets(s, max, stdin)); 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; |