From f261aeb7dec1e5cf4f3c84ce856bf93cbefb0352 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Thu, 5 Jul 2001 08:01:15 +0000 Subject: Fix a harmless format string bogon and mark a function as __printflike(). There is still one instance of non-constant format string use inside that function, but it's hard to fix. MFC after: 1 week --- pw/pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pw/pw.c') diff --git a/pw/pw.c b/pw/pw.c index a1f9d8c..b59b9f9 100644 --- a/pw/pw.c +++ b/pw/pw.c @@ -422,7 +422,7 @@ cmdhelp(int mode, int which) } }; - fprintf(stderr, help[which][mode]); + fprintf(stderr, "%s", help[which][mode]); } exit(EXIT_FAILURE); } -- cgit v1.2.3