From a19c3ab413938f7e434e07ae46c27f30bf095047 Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 10 Jul 2000 05:16:59 +0000 Subject: [PATCH] Don't call printf with no format string. git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@62868 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- libtelnet/read_password.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libtelnet/read_password.c b/libtelnet/read_password.c index 4676ed3..f977290 100644 --- a/libtelnet/read_password.c +++ b/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));