Mark a function as __printflike() and fix a non-exploitable format string

warning.

MFC after:	1 week
This commit is contained in:
Kris Kennaway 2001-07-05 10:08:25 +00:00
parent 8de9ed220e
commit 013fab318c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79307

View File

@ -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: