diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-07 08:10:02 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-07 08:10:02 +0000 |
commit | 08edd07cd9b33b46282d0bed938c7f6c1280ee6d (patch) | |
tree | 82f50ac109cc0f58a1d0459b5f291fb253d5b36e /libssp | |
parent | a1a53490fa6ec81fb854cb7bee1aea6b48b7fd95 (diff) | |
download | gcc-08edd07cd9b33b46282d0bed938c7f6c1280ee6d.tar.gz |
* ssp.c (fail): Avoid -Wformat-security warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libssp')
-rw-r--r-- | libssp/ChangeLog | 4 | ||||
-rw-r--r-- | libssp/ssp.c | 4 |
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 @@ +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. 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 @@ /* 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 |