From 537e806f8c62b26c5d5fa912f383f4a7d558574d Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 28 Nov 2013 09:13:17 +0100 Subject: Fix format string use MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit copt.c: In function ‘writeoutf’: copt.c:806:2: error: format not a string literal and no format arguments [-Werror=format-security] fprintf(fp, headstr); ... --- copt/copt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'copt') diff --git a/copt/copt.c b/copt/copt.c index 9392380..fe49ad5 100644 --- a/copt/copt.c +++ b/copt/copt.c @@ -803,7 +803,7 @@ static void writeoutf(char *filename, char *headstr) exit(1); } if (headstr != NULL) { - fprintf(fp, headstr); + fprintf(fp, "%s", headstr); fprintf(fp, "\n"); } for (lp = infile; lp != NULL; lp = lp->next) -- cgit v1.2.1