summaryrefslogtreecommitdiffstats
path: root/libssp
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-12-07 09:10:02 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-12-07 09:10:02 +0100
commitb32f3fefd271f0c3c6b4c4c91ea89833d9e14c40 (patch)
tree82f50ac109cc0f58a1d0459b5f291fb253d5b36e /libssp
parentrs6000.md (bswapdi2_32bit): Remove ?? from r->r alternative. (diff)
downloadgcc-b32f3fefd271f0c3c6b4c4c91ea89833d9e14c40.tar.gz
gcc-b32f3fefd271f0c3c6b4c4c91ea89833d9e14c40.tar.bz2
gcc-b32f3fefd271f0c3c6b4c4c91ea89833d9e14c40.tar.xz
* ssp.c (fail): Avoid -Wformat-security warning.
From-SVN: r205775
Diffstat (limited to 'libssp')
-rw-r--r--libssp/ChangeLog4
-rw-r--r--libssp/ssp.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/libssp/ChangeLog b/libssp/ChangeLog
index c127fce7f3f..6291561e089 100644
--- a/libssp/ChangeLog
+++ b/libssp/ChangeLog
@@ -1,3 +1,7 @@
12013-12-07 Jakub Jelinek <jakub@redhat.com>
2
3 * ssp.c (fail): Avoid -Wformat-security warning.
4
12013-09-20 Alan Modra <amodra@gmail.com> 52013-09-20 Alan Modra <amodra@gmail.com>
2 6
3 * configure: Regenerate. 7 * configure: Regenerate.
diff --git a/libssp/ssp.c b/libssp/ssp.c
index aaa5a322c8d..96adf17ce3f 100644
--- a/libssp/ssp.c
+++ b/libssp/ssp.c
@@ -1,5 +1,5 @@
1/* Stack protector support. 1/* Stack protector support.
2 Copyright (C) 2005, 2009 Free Software Foundation, Inc. 2 Copyright (C) 2005-2013 Free Software Foundation, Inc.
3 3
4This file is part of GCC. 4This file is part of GCC.
5 5
@@ -136,7 +136,7 @@ fail (const char *msg1, size_t msg1len, const char *msg3)
136#ifdef HAVE_SYSLOG_H 136#ifdef HAVE_SYSLOG_H
137 /* Only send the error to syslog if there was no tty available. */ 137 /* Only send the error to syslog if there was no tty available. */
138 else 138 else
139 syslog (LOG_CRIT, msg3); 139 syslog (LOG_CRIT, "%s", msg3);
140#endif /* HAVE_SYSLOG_H */ 140#endif /* HAVE_SYSLOG_H */
141 141
142 /* Try very hard to exit. Note that signals may be blocked preventing 142 /* Try very hard to exit. Note that signals may be blocked preventing