about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-12-11 13:08:26 -0800
committerRoland McGrath <roland@hack.frob.com>2014-12-11 13:08:26 -0800
commite9813cfb3d71675c87a16318b20642a366aff74c (patch)
treec0ad73f19435c2bb4d6996a9fd803033ee81ea0d /posix
parentf627ca82fb6c469c8cf34f04f02fe2ea006304bd (diff)
downloadglibc-e9813cfb3d71675c87a16318b20642a366aff74c.tar.gz
glibc-e9813cfb3d71675c87a16318b20642a366aff74c.tar.xz
glibc-e9813cfb3d71675c87a16318b20642a366aff74c.zip
Fix -Wformat-security warnings in posix/regexbug1.c
Diffstat (limited to 'posix')
-rw-r--r--posix/regexbug1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/regexbug1.c b/posix/regexbug1.c
index 28640968d0..17643e7e4d 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)