From 013fab318ca18fa94c1e45d3eba2f089feecd049 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Thu, 5 Jul 2001 10:08:25 +0000 Subject: [PATCH] Mark a function as __printflike() and fix a non-exploitable format string warning. MFC after: 1 week --- usr.bin/xlint/lint1/decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c index c88a5a80b550..639c12372a3a 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: