pr: Make prdate() more obviously correct
Using ctime() as pr()'s first argument is safe, because its value never contains '%'. Clean it up anyway, so we can enable -Wformat-security. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
d9837728c2
commit
b34cbad683
1 changed files with 1 additions and 1 deletions
|
@ -432,7 +432,7 @@ prdate(void)
|
|||
time_t now;
|
||||
|
||||
(void)time(&now);
|
||||
pr(ctime(&now));
|
||||
pr("%s", ctime(&now));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue