mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-09 16:01:19 +01:00
Don't call printf with no format string.
This commit is contained in:
parent
26eaf5dcb8
commit
612740bdcf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62871
@ -3096,7 +3096,7 @@ char *string; /* string containing user command */
|
||||
}
|
||||
if (shell_fork)
|
||||
{
|
||||
printf(continue_msg);
|
||||
printf("%s", continue_msg);
|
||||
fflush(stdout);
|
||||
while ((in = getchar()) != '\n')
|
||||
;
|
||||
|
@ -315,7 +315,7 @@ putdata(x, notlast)
|
||||
{
|
||||
|
||||
if (boring)
|
||||
printf(format);
|
||||
printf("%s", format);
|
||||
else if (longdata && nosign) {
|
||||
if (x <= (double)ULONG_MAX && x >= (double)0)
|
||||
printf(format, (unsigned long)x);
|
||||
|
@ -323,7 +323,7 @@ wtmp()
|
||||
}
|
||||
tm = localtime(&buf[0].ut_time);
|
||||
(void) strftime(ct, sizeof(ct), "\nwtmp begins %c\n", tm);
|
||||
printf(ct);
|
||||
printf("%s", ct);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user