From e9813cfb3d71675c87a16318b20642a366aff74c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 11 Dec 2014 13:08:26 -0800 Subject: Fix -Wformat-security warnings in posix/regexbug1.c --- posix/regexbug1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'posix/regexbug1.c') diff --git a/posix/regexbug1.c b/posix/regexbug1.c index 2864096..17643e7 100644 --- a/posix/regexbug1.c +++ b/posix/regexbug1.c @@ -18,7 +18,7 @@ main (void) { char buf[100]; regerror (reerr, &re, buf, sizeof buf); - error (EXIT_FAILURE, 0, buf); + error (EXIT_FAILURE, 0, "%s", buf); } if (regexec (&re, "002", 2, ma, 0) != 0) @@ -35,7 +35,7 @@ main (void) { char buf[100]; regerror (reerr, &re, buf, sizeof buf); - error (EXIT_FAILURE, 0, buf); + error (EXIT_FAILURE, 0, "%s", buf); } if (regexec (&re, "002", 2, ma, 0) != 0) -- cgit v1.1