aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcclibs
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2013-10-21 22:55:56 +0000
committerSean Bruno <sbruno@FreeBSD.org>2013-10-21 22:55:56 +0000
commit4971c4adadc52914f16eb109e90c5b29c12b5c3f (patch)
tree7a28bbb6c63e7a11c9428f2402cb6f386b95936c /contrib/gcclibs
parenta33ce322b6e1e655488318d715bb97746c7367b6 (diff)
downloadsrc-4971c4adadc52914f16eb109e90c5b29c12b5c3f.tar.gz
src-4971c4adadc52914f16eb109e90c5b29c12b5c3f.zip
Resolve clang warning about a use of syslog. By using a proper enforcement
of string format in a call so syslog /usr/src/gnu/lib/libssp/../../../contrib/gcclibs/libssp/ssp.c:137:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_CRIT, msg1); ^~~~ Reviewed by: dim@
Notes
Notes: svn path=/head/; revision=256866
Diffstat (limited to 'contrib/gcclibs')
-rw-r--r--contrib/gcclibs/libssp/ssp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcclibs/libssp/ssp.c b/contrib/gcclibs/libssp/ssp.c
index 9576be445b22..e1f6f3977690 100644
--- a/contrib/gcclibs/libssp/ssp.c
+++ b/contrib/gcclibs/libssp/ssp.c
@@ -128,7 +128,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