Skip to content

Commit

Permalink
* ssp.c (fail): Avoid -Wformat-security warning.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205775 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
jakub committed Dec 7, 2013
1 parent a1a5349 commit 08edd07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions 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.
Expand Down
4 changes: 2 additions & 2 deletions 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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 08edd07

Please sign in to comment.