Skip to content
Snippets Groups Projects
Commit b32f3fef authored by Jakub Jelinek's avatar Jakub Jelinek Committed by Jakub Jelinek
Browse files

* ssp.c (fail): Avoid -Wformat-security warning.

From-SVN: r205775
parent c869fd04
No related merge requests found
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.
......
/* 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment