* ssp.c (fail): Avoid -Wformat-security warning.
authorJakub Jelinek <jakub@redhat.com>
Sat, 7 Dec 2013 08:10:02 +0000 (09:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 7 Dec 2013 08:10:02 +0000 (09:10 +0100)
From-SVN: r205775

libssp/ChangeLog
libssp/ssp.c

index c127fce7f3fac17c30ce1dc57f2cd239f1391cab..6291561e0895ae18900a7240e2d62dba6b61968a 100644 (file)
@@ -1,3 +1,7 @@
+2013-12-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * ssp.c (fail): Avoid -Wformat-security warning.
+
 2013-09-20  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index aaa5a322c8de59a3d98ba942ab952af5a49bbfcf..96adf17ce3fe792801dca8aa5d62c88045b7872a 100644 (file)
@@ -1,5 +1,5 @@
 /* Stack protector support.
-   Copyright (C) 2005, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2005-2013 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -136,7 +136,7 @@ fail (const char *msg1, size_t msg1len, const char *msg3)
 #ifdef HAVE_SYSLOG_H
   /* Only send the error to syslog if there was no tty available.  */
   else
-    syslog (LOG_CRIT, msg3);
+    syslog (LOG_CRIT, "%s", msg3);
 #endif /* HAVE_SYSLOG_H */
 
   /* Try very hard to exit.  Note that signals may be blocked preventing