diff options
author | Jakub Jelinek <jakub@redhat.com> | 2013-12-07 09:10:02 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-12-07 09:10:02 +0100 |
commit | b32f3fefd271f0c3c6b4c4c91ea89833d9e14c40 (patch) | |
tree | 82f50ac109cc0f58a1d0459b5f291fb253d5b36e /libssp/ssp.c | |
parent | c869fd04dc24532f8b94e96447ce99a4a533ba9e (diff) | |
download | gcc-b32f3fefd271f0c3c6b4c4c91ea89833d9e14c40.zip gcc-b32f3fefd271f0c3c6b4c4c91ea89833d9e14c40.tar.gz gcc-b32f3fefd271f0c3c6b4c4c91ea89833d9e14c40.tar.bz2 |
* ssp.c (fail): Avoid -Wformat-security warning.
From-SVN: r205775
Diffstat (limited to 'libssp/ssp.c')
-rw-r--r-- | libssp/ssp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssp/ssp.c b/libssp/ssp.c index aaa5a32..96adf17 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 |