diff options
author | kris <kris@FreeBSD.org> | 2001-07-05 10:08:25 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-07-05 10:08:25 +0000 |
commit | 377ac4698579ade5d4127152ce7fa45453c9b433 (patch) | |
tree | e778272da13fe989b97aa5a9f54524e473ad8162 /usr.bin/xlint/lint1 | |
parent | cc4212cf2cb9ad92fcf05381c4e72b0c947b229f (diff) | |
download | FreeBSD-src-377ac4698579ade5d4127152ce7fa45453c9b433.zip FreeBSD-src-377ac4698579ade5d4127152ce7fa45453c9b433.tar.gz |
Mark a function as __printflike() and fix a non-exploitable format string
warning.
MFC after: 1 week
Diffstat (limited to 'usr.bin/xlint/lint1')
-rw-r--r-- | usr.bin/xlint/lint1/decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c index c88a5a8..639c123 100644 --- a/usr.bin/xlint/lint1/decl.c +++ b/usr.bin/xlint/lint1/decl.c @@ -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: |