mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
Mark a function as __printflike() and fix a non-exploitable format string
warning. MFC after: 1 week
This commit is contained in:
parent
8de9ed220e
commit
013fab318c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79307
@ -843,7 +843,7 @@ length(tp, name)
|
||||
switch (tp->t_tspec) {
|
||||
case FUNC:
|
||||
/* compiler takes size of function */
|
||||
lerror(msgs[12]);
|
||||
lerror("%s", msgs[12]);
|
||||
/* NOTREACHED */
|
||||
case STRUCT:
|
||||
case UNION:
|
||||
|
Loading…
Reference in New Issue
Block a user