Don't call printf with no format string.
This commit is contained in:
parent
f816121f8e
commit
911669a1de
@ -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));
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
@ -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)");
|
||||
|
@ -205,7 +205,7 @@ rgetchar()
|
||||
break;
|
||||
#ifdef UNIX_BSD4_2
|
||||
case '\032':
|
||||
printf(CL);
|
||||
printf("%s", CL);
|
||||
fflush(stdout);
|
||||
tstp();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user